About the front-end upload document comprehensive basic literacy paste - - - picture upload, rotation, redrawing, preview and other actual combat (with DEMO)

Series of articles Comprehensive Basic Literacy Paste for Front-end Upload Files (Zero)On Comprehensive Basic Literacy Paste for Front-end Upload Files (I) --- XMLHttpRequestComprehensive Basic Literacy Paste for Front-End Upload Files (II) --- FileComprehensive Basic Literacy Paste for Front-End Upload Files (3) --- FormDataOn the Comprehensiv ...

Posted on Thu, 01 Aug 2019 19:06:17 -0700 by silvio

Computing the similarity between two images using JavaScript

Recently I saw Mr. Ruan Yifeng's Principle of similar picture search (2) In this paper, the content feature method is used to compare the similarity of two pictures. Overview steps: Zoom pictures to 50x50 size Convert to Grayscale Picture Determining threshold using Otsu's method Binarize pictures through thresholds Comparing the pixels corres ...

Posted on Thu, 01 Aug 2019 11:01:46 -0700 by lamia

Comparisons between Strict and Non-Strict Patterns in JavaScript

## Notices for Strict Model Strict mode is recommended to be set at the beginning, or within the scope. The grammatical stringent mode that appears in front of the strings when using'use strict'will be invalid, which is equivalent to no strict mode. // var mm = 1; 'use strict'; with ({x:1}) { c ...

Posted on Thu, 01 Aug 2019 01:49:28 -0700 by gli

Several Solutions for Scanning Analytic Two-Dimensional Codes

I. Sweep Wechat When it comes to sweeping, everyone is familiar with Wechat sweeping. How does Wechat sweeping access? Of course, this must be the open api interface of Wechat Open Platform.https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115, Nope, that's the official saying! Step 1: ...

Posted on Thu, 01 Aug 2019 00:14:22 -0700 by Grego

"Let me help you Baidu" source code

Preface Yesterday, I saw a very interesting website in the Wechat group, that is, to input the questions I want to input, and then help you generate a link. After you visit, you will automatically jump to the corresponding Baidu link. This website is not difficult to implement, but just very interes ...

Posted on Wed, 31 Jul 2019 20:16:34 -0700 by Nytemare

Introduction to Javascript Regular Expressions

Preface PS:2018/03/27 Optimize the format of the article, add some new test codeWhen it comes to regularization, we are often exposed to the fact that the front-end is small enough to verify and plug-ins can be seen everywhere. Simple methods can also meet the requirements, but lack of flexibility. Once the need for complexity, there is no more ...

Posted on Wed, 31 Jul 2019 04:37:14 -0700 by fitzsic

Using event proxy to get one of multiple tags/images in an event

Scenario: A navigation bar/picture drop-down box on a page with multiple identical label nodes that can capture a click and encapsulate the corresponding method function (without considering IE)Steps to consider:(1) The Principle of Event Agent (Event Bubble)(2) Several points to consider in a function (default behavior, this pointing) 1. Even ...

Posted on Tue, 30 Jul 2019 21:53:11 -0700 by adityamenon90

Bootstrap split travel tooltips

Toolltips.min.css .tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-t ...

Posted on Tue, 30 Jul 2019 20:38:37 -0700 by underparnv

Defining global variables, functions, filters by mixing in vue

Say a kind of hairless, using mixins to achieve global variables and functions. Methods, variables, filters in mixins merge with methods, variables, and filters in components. The advantage of this method is that ide has methods, variables, and filter hints. I. main.js file import Vue from 'vue' import App from './App' import router from './r ...

Posted on Tue, 30 Jul 2019 17:56:40 -0700 by patrickcurl

Breadth first and depth first

Depth-first traversal and breadth-first traversal What is depth first and breadth first? In fact, simply speaking, depth first is top-down traversal search breadth first is layer-by-layer traversal, as shown in the following figure 1. Depth first2. breadth first The difference between the two For an algorithm, it is nothing more than time for s ...

Posted on Tue, 30 Jul 2019 17:47:29 -0700 by localhost