Vue.nextTick

What is nextTick Vue's official document says, "perform a delayed callback after the next DOM update cycle. Use this method immediately after modifying the data to get the updated dom. " , why does such an API appear? The main reason is that Vue uses asynchronous execution to update dom. As long as it listens for data changes, Vue wi ...

Added by dylan001 on Sat, 09 May 2020 07:55:40 +0300

The mobile terminal detects that the wechat browser returns, closes and enters the background operation

Background: for a recent countdown learning time recording project, you need to record the progress of the current page when the user clicks the back button of the browser or directly closes the browser, or directly exits wechat or enters the background. The next time you go in, you need to start the countdown from the last place you left. At f ...

Added by edgev on Fri, 08 May 2020 13:39:14 +0300

Use JQuery to complete the following list of left and right selections

Js related technology select drop-down list Multiple allow multiple selection ondblclick: double click event for loop traversal, removing problems while traversing requirement analysis Our products usually include what we have and what we don't have. Now we need a page for dynamic editing of these products Step analysis 1. Import JQ file 2. Do ...

Added by Straterra on Thu, 07 May 2020 17:33:55 +0300

echarts for data visualization (1)

echarts for data visualization (1) echarts It is a lightweight chart plug-in of js provided by Baidu. It is very simple to use. Now, I have recorded my experience in the use process. Please spray lightly if you don't write well. 1. Preparation 2. Start with a histogram 3. Dynamic histogram 1. Preparation Download ...

Added by stevesweetland on Tue, 05 May 2020 12:06:01 +0300

computed -- real time calculation attribute

Project: https://github.com/ccyinghua/vue-node-mongodb-project/blob/master/07-shoppingCart.md The calculated function of real-time calculation attributes, real-time calculation attributes, is just the function writing method, and there is no need to declare in data. Some business logic codes can be placed in computed. Remember to return. exampl ...

Added by Blob on Sun, 03 May 2020 01:11:13 +0300

. 25 - Analysis of event flow compilation of webback source code (3)

Run the next batch of plugin s in this section. compiler.apply( new EnsureChunkConditionsPlugin(), new RemoveParentModulesPlugin(), new RemoveEmptyChunksPlugin(), new MergeDuplicateChunksPlugin(), new FlagIncludedChunksPlugin(), new OccurrenceOrderPlugin(true), new FlagDependencyExportsPlugin(), new FlagDependen ...

Added by BETA on Sat, 02 May 2020 21:03:17 +0300

Summary of JavaScript this

Reference documents: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/this Due to the lack of front-end in the project team, I sent it from the back-end to the front-end. I started to develop it a week later. The front-end 0 foundation, Alexander. I've been struggling all morning to understand the horror of JavaScr ...

Added by abkdesign on Sat, 02 May 2020 05:47:39 +0300

Javascript function experience

Javascript functions Javascript functions are event driven or reusable blocks of code that execute when called. So it's useless for us to create a function without calling it. We have to call it to execute it. 1. What is a function (1) a function is a code segment that performs a function (2) functions are repeatable code segments (3) convenien ...

Added by sanand158 on Sat, 02 May 2020 03:18:49 +0300

Cross domain implementation of jsonp+php

Cross domain principle of jsonp There is no cross domain limit for < script > tags The difference between json and json json is a text-based way of data exchange, or a format for describing data. var person = { "name": "test", "age": "25", "sex": "male" }; var data = [1, 2, 3, 4, 5]; jsonp is an unofficial cross domain ...

Added by mcrbids on Fri, 01 May 2020 18:31:35 +0300

Mobile debugging artifact (eruda)

In the daily development of mobile terminal, we usually try the mobile terminal mode of Chrome browser for development and debugging. Only when chrome debugging is completed, can we go to the real machine for testing if there is no problem. This is the big problem of mobile terminal development, Various brands and models of mobile phones, vari ...

Added by ccooper on Thu, 30 Apr 2020 20:57:59 +0300