Table drag Sortable

Sortable is a JavaScript library for reordering drag and drop lists on modern browsers and touch devices. No jQuery is required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, such as Bootstrap Function Description: Javascript library for reordering drag and drop lists. (__JavaScript library for reorderable drag ...

Posted by morphius on Sat, 07 Dec 2019 21:01:55 -0800

git server setup and code check

For local git service, gitlab is usually selected. I first chose gitlab and installed it on centos7 according to the steps on the official website. The download speed was unbearable and I had no choice but to give up. Finally, choose to install gogs image in docker to build git service.   I. installation of gogs 1. Pull image docker pull gogs/ ...

Posted by glennn3 on Sat, 07 Dec 2019 17:30:54 -0800

Function corrilization -- six pulse sword

Are you in? It should be. by the way, there's no six pulse sword here, or even it can't compete with the six pulse sword. But the title of this blog post is called this. It's not changed. What's more? Back to the main topic, the functions in javascript are curried, and many articles on the Internet are written in various ways, even with fancy s ...

Posted by Sulman on Sat, 07 Dec 2019 16:36:41 -0800

[code Notes] JS keeps function single responsibility and flexible combination

For example, in the following code, the order data requested from the server is as follows, which needs to be processed as follows1. Display corresponding value according to status (0-in progress, 1-completed, 2-order exception)2. Display startTime as yyyy MM DD from time stamp3. If the field value is an empty string, set the field value to '-- ...

Posted by iii on Sat, 07 Dec 2019 14:32:37 -0800

Error logging - dom operation - sort

Error summary of this exercise: 1. The for loop should be inserted into the onclick of the button, otherwise the onclick click event cannot be executed in sequence. 2. The two variables var N1 and VaR N2 are used in the sort of arr.sort, so they should be put in the sort() function. 3. The Li1 and Li2 of the sorting function arr.sort (function ...

Posted by dangyadang on Sat, 07 Dec 2019 10:55:57 -0800

es6 foundation 0x008: Deconstruction assignment

0x000 overview To be honest, deconstruction assignment is very popular, especially when it is used with other es6, so how to simply say that deconstruction assignment, for example: Deconstruction assignment is a coin splitting machine. Put all dimes into the coin splitting machine, he will automatically divide all the coins and take out what yo ...

Posted by evildj on Sat, 07 Dec 2019 07:52:33 -0800

Why do I recommend Python as a second language for the front end?

Preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: front-end counselor PS: if you need Python learning materials, you can click the link b ...

Posted by dape2009 on Sat, 07 Dec 2019 07:19:50 -0800

Asynchronous programming using Hooks

This excerpt is from Rax's official website rax.js.org introduce Javascript is a single-threaded programming language. A single-threaded feature is that it can only handle one thing at a time, and the time-consuming execution of the current code task can block subsequent code execution.Asynchronous programming is an event-driven program ...

Posted by Trafalger on Sat, 07 Dec 2019 04:19:10 -0800

Use, principle and implementation of Promise

1. What is Promise Promise is the mainstream solution of JS asynchronous programming, which follows promise / A +. 2. Brief analysis of promise principle (1) promise itself is a state machine with three states pending fulfilled rejectedWhen a project object is initialized, its state is pending. When resolve is called, the project state will be ...

Posted by Dude0 on Sat, 07 Dec 2019 02:01:03 -0800

Too much lazy loading of El select data (loadmore)

Excessive processing of El select data In daily projects, El select components are frequently used. When there is too much data, the rendering time is very long. Here are several processing methods Remote search Component provides a remote search method that matches the results you enter Official website provides Reference example There is no f ...

Posted by iloveyou on Sat, 07 Dec 2019 01:18:13 -0800