RadioButton icon resizes (TextView also works)

There is no corresponding layout parameter for the icon size of RadioButton. In this paper, the RadioButton is customized by means of custom attribute to control the image size. Key points of this paper: Use of custom properties. Solve the problem of customizing the size of icons on the top, bottom, left and right of RadioButton text. This m ...

Posted by TimSawyers on Tue, 31 Mar 2020 22:18:46 -0700

ESlint configuration description under Vue cli

1. Close eslint This is just the way to close the Vue cli scaffold. In fact, it is very simple to build/webpack.base.conf.js Just comment out the eslint rules in the configuration file. module: { rules: [ // { // test: /\.(js|vue)$/, // loader: 'eslint-loader', // enforce: 'pre', ...

Posted by mosherben on Tue, 31 Mar 2020 20:45:55 -0700

c + + type conversion

concept The meaning of type conversion is to change the representation of a variable by changing its type to another type. In order to type one simple object into another you will use the type conversion operator. C-style cast is very simple, no matter what type of cast is: TYPE b = (TYPE)a C + + style type conversion provid ...

Posted by 3.grosz on Tue, 31 Mar 2020 15:10:41 -0700

Some options are not displayed in Kendo UI required input verification

After several years of EBS secondary development, I recently transferred to WEB development, and finally got a sense of connecting with the world. The new project is useful to the front-end framework of kendo ui. I simply read a few novice introductory tutorials, started rolling code, copied and pasted rolling flying, a ...

Posted by kutchbhi on Tue, 31 Mar 2020 12:34:20 -0700

Web Notifications desktop notification js encapsulation

var NotificationHandler = { isNotificationSupported: 'Notification' in window, isPermissionGranted: function() { return Notification.permission === 'granted'; }, requestPermission: function() { if (!this.isNotificationSupported) { console.log('the current browser ...

Posted by ramus on Tue, 31 Mar 2020 10:48:39 -0700

On the value passing problem of parent-child components of vue

Create three Vue components - index.vue (parent component), son1.vue (child component), son2.vue (child component) Set the path of the parent component in the router file (the child component does not need to set the route); Page conversions between parent and child components are not routed The parent component passes the d ...

Posted by ElectricShaka on Tue, 31 Mar 2020 00:25:28 -0700

JS accurately obtains parameters in URL URL

1. Get the entire URL string To get the parameters in the URL, first we need to get the entire URL string. We use: http://www.zhihua.com/wap/tmpl/member/member.html? Token = Zhihua as an example. ① Get (or set) the protocol part of the URL: window.location.protocol //window.location.protocol set or get the protoco ...

Posted by Maiku on Mon, 30 Mar 2020 23:07:04 -0700

8KW Dry Goods Tutorial | Reflective lecture on java

Reflection mechanism in java Catalog1. The concept of reflection mechanism2. Base Class of Reflection3. Usage of reflection4. Examples of applications of reflection Author's introduction: A stack of learning notes, a person working hard The concept of reflection mechanism: In the run state, all the properties and methods of this class can be ob ...

Posted by brianlange on Sun, 29 Mar 2020 20:44:53 -0700

IoC container initialization of spring framework

Analysis example Startup class Application, using ClassPathXmlApplicationContext to load xml files /** * @author jianw.li * @date 2020/3/16 11:53 PM * @Description: TODO */ public class MyApplication { private static final String CONFIG_LOCATION = "classpath:application_context.xml"; private static final String BEAN_NAME = "hello"; ...

Posted by eagleweb on Sun, 29 Mar 2020 09:48:58 -0700

Object expansion

Object expansion Object development review: Object literal, object deconstruction, three dot operators Object name attribute Object's method name attribute, but there are two special attribute methods. 1. If it is a property method, it is obtained through the property object. // / / object // let obj = { // demo() {}, // //Characteristi ...

Posted by boby on Sun, 29 Mar 2020 03:05:58 -0700