On node events module

Module overview In node, events module is one of the core modules. Almost all the common node modules inherit events module For example, net.Server will trigger events every time there is a new connection, fs.ReadStream will trigger events when the file is opened, stream will trigger events when the data is readable, etc The events module itsel ...

Posted on Mon, 04 Nov 2019 16:50:32 -0500 by etherboo

Native js implementation of each method

There is an each method in jquery to simplify and facilitate circular operation.Then es produced a forEach method. Although the two methods are similar in usage, they cannot handle object types. And the continue effect cannot be achieved through return true.In addition, there is an every method. Although this method can achieve the continue eff ...

Posted on Mon, 04 Nov 2019 15:59:44 -0500 by MikeL

One server of front and back end separation project is online

I. purchase server Here are some notes When you choose to configure linux system, you'd better choose centos7 + instead of centos6+ To configure the development port, it is better to open the common port and the operation port to prevent the subsequent nginx startup page from being unable to access the ip. Generally, the port permission is no ...

Posted on Mon, 04 Nov 2019 13:35:13 -0500 by jumpfroggy

Swoole and thinkp5 develop WebSocket online chat communication system

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension* To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole   If you don't say much, go straight to the code: ...

Posted on Mon, 04 Nov 2019 09:58:41 -0500 by tecktalkcm0391

How to load template file with MarkDown rich text editor

We only need a piece of loading code to finish the mark down loading template file. $("#md-demo").bind('click', function () { $.get("/Lib/MarkDown/examples/test.md", function (md) { testEditor = editormd("test-editormd", { width: "99%", height: 740, path: "/Lib/MarkDo ...

Posted on Mon, 04 Nov 2019 09:25:12 -0500 by villas

The standard built-in object Proxy of ES6

Proxy is a standard built-in object defined by the ES6 specification, which can intercept operations such as reading and function calling of the target object. Generally speaking, the target object can be "controlled" by proxy, such as whether it can call a method of the object, whether it can add properties to the object, etc. const ...

Posted on Mon, 04 Nov 2019 05:06:18 -0500 by Leppy

Functions in Kotlin

This article starts with vivo Internet technology WeChat public. Links: https://mp.weixin.qq.com/s/UV23Uw_969oVhiOdo4ZKAw Author: Lian lingneng Kotlin, which has been officially announced as "kotlin first" by Android, was found to be the example code provided when going through the official Android documents. Kotlin's pragmatic styl ...

Posted on Sun, 03 Nov 2019 23:05:55 -0500 by rxbanditboy1112

Detailed explanation of DOM traversal module in jQuery source code analysis

jQuery's DOM traversal module encapsulates and extends the DOM model's native attributes parentNode, childNodes, firstChild, lastChild, previousSibling and nextSibling, which are used to traverse parent, child and sibling elements in the DOM tree. It can be accessed through an instance of jQuery as follows: parent(); get the parent of the ma ...

Posted on Sun, 03 Nov 2019 19:52:06 -0500 by deepson2

node returns geojson to shp to the front end

When node transfers geojson to shp, it needs to call the [ogr2ogr][1] library. When it calls the ogr2ogr library, because it calls gdal's tools to implement the geojson switches to shp, so you need to install gdal and configure environment variables. For details, please refer to This link . After the environment is configured, the code can be ...

Posted on Sun, 03 Nov 2019 18:46:01 -0500 by drbigfresh

spring timing task - file upload progress bar

spring scheduled tasks Guided dependency <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz --> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.3</version> </dependency> Configure scheduled task class pac ...

Posted on Sun, 03 Nov 2019 16:10:14 -0500 by Miichael