cropper crop picture and canvas composite picture

Before you can crop a composite picture, you first need to understand canvas and cropper. canvas 1. Create a node first: var c=ocument.createElement("canvas"); and 2. Create a drawing environment for c: var ctx = canvas.getContext("2d"); 3. You can set the width and height: canvas.width=330; canvas.height=440 (see how bi ...

Added by crowezr on Sun, 26 Apr 2020 19:31:39 +0300

Infinite loop of El menu component in element

Implementation idea: nesting of main components (components call themselves) Here is the data required by the component { "code": 1, "data": { "menuVoList": [ { "childList": [ { "childList": [], "menu": { "createBy": "0-1", "createTime": 1587610158, ...

Added by jeremywesselman on Sun, 26 Apr 2020 18:38:00 +0300

Jquery plug-ins (commonly used plug-in libraries)

With the end of Jquery knowledge points, I also began to touch the framework. At the beginning, I always hear the words "plug-in" and "framework". I wonder what's the difference between framework and plug-in? "?? There are countless plug-ins. Any function in a web page can be called a plug-in. It can be extracted separa ...

Added by sdlyr8 on Sat, 25 Apr 2020 20:18:05 +0300

Some simple applications of regular expressions

1. Match 11 mobile phone numbers with the first letter of 1 ^1\d{10}$ 2. Matching name, 3-6 characters in Chinese [\u4e00-\u9fa5]{3,6} 3. Matching password must be 6-16 characters, and can only contain numbers, letters and underscores: $\w{6-16}^ 4. Matching mailbox ^\w+@\w+(\.\w+){1,2} 5. Match the number of the seat ^\d{1,3}-\d{4,8}$ 6. Match ...

Added by Nameless12 on Thu, 23 Apr 2020 17:32:16 +0300

Flow static type checking development environment construction

Flow It is a static type checking tool for JavaScript produced by Facebook. It can help to catch common errors in JavaScript development without modifying the original code, such as static type conversion, null value reference and so on. At the same time, Flow adds a syntax identifier of static type to JavaScript, so that developers can define ...

Added by MaxBodine on Sat, 18 Apr 2020 12:33:56 +0300

Summary of common ES6 features

I. ES6 Basic Understanding 1. What is ES6? ES6 refers to ECMAScript 6.0 and is a standard for the JavaScript language.The goal is to make JavaScript a language for enterprise development by allowing you to write complex, large applications. 2. What is the difference between ES6 and JavaScript? ES6 is a standard for JavaScript, and JavaScript is ...

Added by suomynonA on Sat, 18 Apr 2020 00:04:07 +0300

Picture Processing of.net core and Generation and Resolution of Two-Dimensional Code

It has been more than ten years since I wrote the code.   From html to css to javascript to vbscript to c#, from interest to occupation, life is always lost and surprising.   Most of the time, I don't start because I know where to go, I just know I can't stay anymore, that's all.After being hit by the wind and rain, there will be a lot of u ...

Added by theqase on Fri, 17 Apr 2020 23:57:07 +0300

Detailed explanation of php's high precision calculation

PHPer engaged in the financial industry has frequent capital calculation. If you don't pay attention to it, you may lose hundreds of thousands or even worse... Let's take an example: javascript Why is 0.1 + 0.2 not equal to 0.3? (correct result: 0.3000000000000004) Why is 0.8 * 7 not equal to 5.6? (correct result: 5. ...

Added by tekkenlord on Thu, 16 Apr 2020 13:12:51 +0300

Two dimensional vector data to Mars coordinates

In this paper, based on the Supermap platform, the two-dimensional vector data of 84 to Mars is realized. Steps: Converting data into the geographic coordinate system of wgs84 in iDesktop In iDesktop, convert the data to geojson. Note that the format should be utf-8, otherwise the Chinese field will be garbled. Under nodejs, we use projzh ...

Added by jesbin on Wed, 15 Apr 2020 17:26:28 +0300

JS Component Series - JsPlumb Production Flowchart and Detailed Relevant Effects

Top Foreword: The previous project used JsPlumb, a drag-and-drop flowchart technology from the Web, which is not really difficult, but it feels good to share some flash-like effects made with HTML in the project. Jsplumb website: https://jsplumbtoolkit.com GitHub: https://github.com/sporritt/jsplumb/ 1. Effect Diagram Display ...

Added by RTT on Wed, 15 Apr 2020 03:55:48 +0300