node-side event loop mechanism (Part2 - Timers, Immediates, Next Ticks)

Welcome back, at In the first article In this section, three important queues will be discussed in detail through code examples. They are timers, immediates and process.nextTick. Article guide Event Loop Timers, Immediates, Next Ticks (this article) Promises,Next-Ticks,Immediates Processing I/O Best Event Cycle Practice Changes in timers and ...

Posted on Thu, 07 Mar 2019 04:21:23 -0800 by monkeynote

Basic Use and Load Balancing Configuration of SPLASH Based on PYTHON

Basic Use and Load Balancing Configuration of SPLASH Based on PYTHON 1. tools Language: Python 3.7, Lua Compiler: pycharm Package management tool: pip Tool: Scrapy-Splash Application Container Engine: docker 2. Functional introduction With Splash, we can achieve the following functions: Asynchronous processing of mult ...

Posted on Sat, 02 Mar 2019 05:39:22 -0800 by JimmyD

Vue-SuperSlide(SuperSlide component for Vue)

Vue-SuperSlide Vue-SuperSlide(Github ) SuperSlide is a Vue encapsulated version of SuperSlide. The API configuration and usage are almost the same as SuperSlide, so that you can easily use SuperSlide in Vue engineering. brief introduction A detailed introduction to SuperSlide can be found SuperSlide's official website - Dahua Chairman Check it ...

Posted on Mon, 25 Feb 2019 21:18:22 -0800 by pkenny9999

Conflicts between blur, mouseleave and mouseenter events when making editable table cells using dataTables components

The problem arises in the following scenarios:Data Tables component is used, but it has no editing function, so it needs to handle the effect of in-line editing of table s by itself. The target effect is:1. When hover reaches the current tr, an input box appears in the editable td in the line tr: 2. When leaving the current tr, the line exits ...

Posted on Tue, 19 Feb 2019 19:24:21 -0800 by stezz

Using webpack 4 and Babel 7 to build React applications and how to introduce Material Design

For the past year and some people, I've been working with you. Creative Tim Cooperation. I've been using it all the time. create-react-app To develop some good products. Many customers asked how to migrate our product template on Webpack. After many requests, we wrote this tutorial on how to start using React with Webpack 4 and Babel 7. At the ...

Posted on Mon, 18 Feb 2019 03:24:19 -0800 by cameeob2003

Callbacks, Promises and Async/Await

This article is translated from the author Sandeep Dinesh's article: Callbacks, Promises and Async/Await Suppose you have a function that prints a string after a random period of time: function printString(string){ setTimeout( () => { console.log(string) }, Math.floor(Math.random() * 100) + 1 ) } Let's try to print the ...

Posted on Fri, 15 Feb 2019 00:00:19 -0800 by duke

Component-based Development of Web App Whole Station-5-Development of H5 Objects

1. Content organization: add pages, add components 2. Integrating FulPage.js page switching 3. Chain call JQuery object, encapsulating a Dom array, provides a series of operations on Dom data. Most of the operations can return to the jQuery object itself, which can facilitate chain operation. Components do not know which page to add? Ti ...

Posted on Thu, 14 Feb 2019 20:33:18 -0800 by GoodWill

Export table s from html to excel files using JavaScript or python

Export table s from html to excel files using JavaScript or python 1. Using jQuery's jquery-table2excel plug-in (for reference in this section) https://github.com/rainabba/jquery-table2excel ) Usage method: - jQuery and jquery.table2excel.js files are introduced into the page. <script type="text/javascript" src="js/jquery.min.js"&gt ...

Posted on Thu, 14 Feb 2019 03:30:19 -0800 by psymonic

[Angular JS] 4. The $apply method and the $watch method in Angular JS $scope

1. The $apply method in Angularjs $scope (1) The $apply method role: Scope provides the $apply method to propagate changes in the Model. (2)$apply method usage scenario: After the Angular JS external controller (DOM events, external callback functions such as jQuery UI space, etc.) calls the Angular JS function, it must call $apply. In this c ...

Posted on Wed, 13 Feb 2019 07:39:19 -0800 by Nixon

es6 Series of Tutorials - Map Details and Common Apris _____________

The Map type in ECMAScript 6 is an ordered list of many key-value pairs. Key-value pairs support all data types. Key 0 and `0'are treated as two different keys, and no forced type conversion occurs. How to use Map? let map = new Map(); Common methods: Set (key, value): Add a new key-value pair element Get (key): Gets the value correspondin ...

Posted on Tue, 12 Feb 2019 21:09:19 -0800 by sellfisch