echarts drawing scatter map on map (any point)
Project requirements: draw a scatter map on the provincial map. The scatter location may not be any city or district or county, that is, any point
By querying the official website documents, find a Demo similar to the requirements: https://www.echartsjs.com/gallery/editor.html?c=scatter-map , change the code, and replace the map of China with t ...
Added by loopt on Mon, 02 Dec 2019 02:25:03 +0200
Notes on advanced JavaScript programming: BOM
BOM (browser object model) provides many objects for accessing browser functions, which are independent of any web page content.
window object
global scope
There is a difference between defining global variables and directly defining attributes on the window object: global variables cannot be deleted through the delete operator, but attribut ...
Added by maheshbaba on Sun, 01 Dec 2019 10:19:37 +0200
Using archive to compress files in nodejs
Preface
archive is a tool for cross platform packaging in nodejs
You can compress the file to zip or rar format
It is a better third-party module
install
npm install archiver --save
archive github address: https://github.com/archiverjs/node-archiver
Quick Start
// require modules
var fs = require('fs');
var archiver = require('archiver');
// ...
Added by Dustin013 on Tue, 26 Nov 2019 17:48:33 +0200
golang network programming form
golang_real.jpg
In fact, I hate to move bricks now, but sometimes I still move bricks. If you don't move, you know you have strength.
th-14.jpeg
Client code
Template file, the following is the client code of form submission, which may not be familiar. No more explanation.
<form class="login_form" action="/login" ...
Added by Pi_Mastuh on Sat, 23 Nov 2019 16:47:56 +0200
Node.js writes a simple static server 5 MIME
MIME - Multipurpose Internet Mail Extensions, an Internet standard that describes the type of message content.
http://www.w3school.com.cn/media/media_mimeref.asp
The "content type" we set in the code before is "text/plain" and "text/html". Two different MIME settings.
We often use "applicat ...
Added by ju8ular1 on Fri, 22 Nov 2019 18:49:09 +0200
Native table implements polling + css to modify the default scroll bar style
There are two requirements in the recent project (vue Series). Here is a record to share with you.
Polling by native Table list
Demand:
Do not poll when the number of table lists is small, and only poll when the number exceeds a certain height;
Move the mouse in to pause polling, move out to continue polling
First, the prototype is as follows ...
Added by wizhippo on Thu, 21 Nov 2019 19:58:29 +0200
jQuery Source Parsing Style Operation Module Style Details
Style manipulation module can be used to manage the style, coordinates and dimensions of DOM elements. This section explains style dependency. Style manipulation is implemented through the css method of the jQuery instance, which has many execution methods, as follows:
css(obj); when parameter 1 is an object, it means that multiple css styles ...
Added by Voodoo Jai on Wed, 20 Nov 2019 02:44:33 +0200
H5 copy paste - execCommand
Window.clipboarddata (only available in IE)
It's a good object to use, but only in IE,It took IE ten thousand years to find out that he had a good placeIE is about to quit history. Find something else
Compatibility (can I use)
brief introduction When the document object is converted to design mode (select, set contentEditable, etc.), the ...
Added by advoor on Sun, 17 Nov 2019 21:09:17 +0200
JavaScript get CSS inline style and external style
There is a global method getComputedStyle in the DOM standard, which can get the current object style rule information. For example, getComputedStyle(obj,null).paddingLeft can get the left inner margin of the object. However, IE does not support this method. It has its own implementation method, that is, currentStyle, which is ...
Added by yepster123 on Wed, 13 Nov 2019 21:26:51 +0200
JavaScript Design Mode for Refining Internal Work
Sensation:
Taste: plum ribs
Cooking time: 20 min
Someone asked me why I kept blogging?
To quote famous novelist Stephen King, "Start writing!Young people."
When you upgrade consumer interest to production interest, you will gradually discover the doors and magic that you didn't see before.
Cough, please drink chicken soup when it's c ...
Added by rsasalm on Tue, 12 Nov 2019 05:18:08 +0200