vue encapsulation common method to deal with the accuracy of js computational scientific notation

Statement: The core of this article is to refer to other Daniel's articles or blogs earlier. The source of this article can not be found. If you see it, please leave a message, it will make up the source. Make some changes and keep them in use. Not much nonsense, here's how to use the code in vue directly: 1. New public metho ...

Posted by nsr500rossi on Fri, 01 Feb 2019 00:36:15 -0800

Vue Binding Inline Style

Using v-bind:style, you can bind inline styles to elements in a way similar to: class, with object grammar and array grammar, which seems to write CSS directly on elements: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Example</title> </head> <body> <div ...

Posted by able on Thu, 31 Jan 2019 22:30:15 -0800

Introduction to the Use of Route Manager Vue Router in Vue (3)

I. Adding Dynamic Parameter Definition to Routing Definition 1. Routing Definition Item, using: xx to define dynamic parameters { path:'/user/:id/:name', name:'user', component:()=>import('./views/User.vue') } 2. Get dynamic parameters, global variable $route Use: <template> <el-alert type='su ...

Posted by neo_phyte on Thu, 31 Jan 2019 14:48:15 -0800

Make a personalized switch switch switch button

Demand Background: The company has a Wechat widget project, which requires a large number of unique switch buttons. Like the switch button, the widget widget can't fill in the text. Therefore, directly, and the framework of the widget is based on the mpvue of vue. The time of mpvue coming out is also short. It is estimated that ...

Posted by melrse on Tue, 29 Jan 2019 23:36:14 -0800

Two-way data binding (getter and setter) with computer in vue

Vue is known as a framework to achieve data bidirectional binding, but in fact, in daily development, we use the most is v-model to associate data (vue instance) with view, to achieve data updates, view automatic refresh effect. However, as far as mobile Chengdu is concerned, the effect of two-way data binding is not particular ...

Posted by fr0stx on Sun, 27 Jan 2019 13:54:14 -0800

Custom Bullet Window with Show Animation

Small programs are similar to template engines such as Vue.js and Angular.js. This kind of MVVM data-driven framework can quickly develop projects. However, when doing small programs, one of the problems we will encounter is that the pop-up window is very rigid and there is no transition animation. The following source code doe ...

Posted by eXodus on Sun, 27 Jan 2019 11:24:14 -0800

laravel [mews/captcha] image authentication code api interface form acquisition, verification, does not pass session

[mews/captcha] First, the extended GitHub address is given: https://github.com/mewebstudi... Preliminary preparation and explanation The normal use of this extension in laravel is to save and verify the validation code entered by the user through session, but my current project is completely separated from the background. The front desk uses vu ...

Posted by Balmung-San on Sun, 27 Jan 2019 00:12:15 -0800

Call and data transfer between Vue parent and child components

Call and data transfer between Vue parent and child components Definition of parent and child components Parent and child components of two files Definition of parent and child components The official website of vue has written some definitions about parent-child components and the transfer of values. I won't go into too ...

Posted by setic on Sat, 26 Jan 2019 17:12:15 -0800

Detailed Explanation of lisf-diff for children Comparison in virtual-dom

Visit this article if you are not clear about virtual-dom Source code of list-diff Preface: Within a vue or react, each VNode has a unique key to identify, which is usually handled automatically by the framework, but must be specified by the developer within the loop. So the following interpretation is that I use this key to represent the objec ...

Posted by jkm4201 on Thu, 24 Jan 2019 15:24:14 -0800

Fabrication of electron imitating qq(2) main interface

Make it from scratch and finally put the written components together!Pure css, which has been written for several days, is a bit tiring. sass will be used in this chapter. If the code is too long, it will be written in two or more chapters.There will be detailed comments in the code for you to read and understand.The interface may be partially ...

Posted by ICKelly on Sat, 19 Jan 2019 19:54:12 -0800