Implementing Bidirectional Data Binding of Vue

Reproduced at https://segmentfault.com/a/1190000014274840 1, principle The principle of Vue's two-way data binding is well understood, mainly through the definition property property property of the Object object, rewriting the set and get functions of data. Here, the principle is not described too much, but mainly to ...

Posted by alco19357 on Wed, 15 May 2019 02:44:08 +0200

How to draw a cube with CSS3?

Preface Writing recently< Animation Point Series > The article was shared in the last issue. Hands teach you how to draw a sports car. This issue brings you a three-dimensional 3d magic cube combined with CSS3, which combines js to let you turn as you like. Here is @ IT Pingtou Coalition I'm the chief filling officer. South of Jiangsu (S ...

Posted by shoxlx on Tue, 14 May 2019 23:45:41 +0200

Common Codes for android Animation

Combined animationImplementing composite animation mainly depends on the class AnimatorSet, which provides a play() method. If we pass an Animator object (Value Animator or Object Animator) into this method, we will return an instance of AnimatorSet.Builder. AnimatorSet.Builder includes the following four methods: after(Anim ...

Posted by Toxinhead on Tue, 14 May 2019 21:14:30 +0200

Packaging and Constructor

Lesson Eight                            2018-04-23  02:07:01 Encapsulation and Hiding:Problem: When an object of a class is created, it may come as an unexpected failure to satisfy the actual situation if the corresponding object property is assigned directly through the way of Object.Attribute. Lead out: Control ...

Posted by pagedrop on Tue, 14 May 2019 20:12:09 +0200

Mobile Responsive Layout

I. Mobile End Foundation 0x1 Viewport 1, introduction viewport on mobile devices refers to the screen of the device that can be used to display the network. In general, viewport s on mobile devices are larger than browsing pages. Visual area of the device. 2, usage <meta name="viewport" content="width=device-width ...

Posted by darthbutternutz on Tue, 14 May 2019 15:29:39 +0200

Constructor, prototype, prototype chain, prototype chain inheritance in JS

JavaScript is a prototype-based interpretive scripting language, which runs on the browser side. At the same time, JS is an object-oriented programming language. Everything in JS can be regarded as objects, strings, numbers, functions and so on. First, what are the ways to create objects? 1. Create an object literal: var student ...

Posted by bmyster on Tue, 14 May 2019 13:32:08 +0200

Webpack 4.0 introductory learning notes

Initialization project Create project mkdir webpack4-democd webpack4-demo npm init -y install npm install webpack --save-dev Install the specified version npm install --save-dev webpack@<version> webpack 4 + version, you also need to install webpack-cli npm install webpack-cli --save-dev It is recommended to install webpack and webpack ...

Posted by zonkd on Tue, 14 May 2019 13:10:28 +0200

Functions are the introduction of apply() and call().

Application, call in function When it comes to apply,call begins by talking about their origins with functions. Javascript functions are both objects It is no different from other javascript objects. And each function contains two non-inherited methods, apply() and call(), which can call functions indirectly. For example: function f() { c ...

Posted by ThunderLee on Sun, 12 May 2019 13:12:06 +0200

How to Manage z-index in Web Componentization

z-index attributes, although so much has been written, are still widely misunderstood and mishandled. Stacking problems in complex single-page web applications can become a major problem. Sticking to some principles, however, we can easily avoid these problems. If you've ever had any complex Web UI development, you might sometimes go crazy tryi ...

Posted by immanuelx2 on Sun, 12 May 2019 12:10:21 +0200

Redis source code reading: dictionary dict implementation

Redis source code reading: dictionary dict implementation Main Data Structures of Dictionaries Creating dictionaries and hashing algorithms Create dictionary Hash algorithm rehash process Traversal of Dictionaries Other API functions Redis source code reading: dictionary dict implementation Code version: Branch 5.0 ...

Posted by robpoe on Sun, 12 May 2019 10:49:44 +0200