Front-end naming specification basis

A good programmer must be able to write maintainable code, rather than one-off code. How can you make other people in the team understand even when you read the code you write at some time? This requires standardizing your code. I'm a bit obsessive-compulsive. Last week, our back end gave me a CanUsename interface (which is designed to determ ...

Posted by helpmeplease1234 on Wed, 26 Jun 2019 15:19:51 -0700

Reading Zepto Source Collection Element Search

This article is still about dom-related methods, focusing on methods related to collection element lookup. Read the Zepto source series on github. Welcome star: reading-zepto Source version The source code for this article is zepto1.2.0 Internal approach There's a chapter before that.< Internal method of reading Zepto source code > zepto ...

Posted by jigen7 on Wed, 26 Jun 2019 14:09:48 -0700

Brief Analysis of Web Packing Codes

Brief Analysis of Web Packing Codes Come to the point 1. Packing a single module webpack.config.js module.exports = { entry:"./chunk1.js", output: { path: __dirname + '/dist', filename: '[name].js' }, }; chunk1.js var chunk1=1; exports.chunk1=chunk1; After packaging, main. JS (some comments genera ...

Posted by PJNEW on Wed, 26 Jun 2019 10:17:55 -0700

javaScript--Analysis of Reduced Array Method

Overview: Array in javaScript contains not only reduce methods, but also foreach,map,filter and so on. Here we mainly introduce reduce methods. Reduc () accumulates data from left to right until the end is a value (that is, the final result), which sounds abstract. The accumulated attention can be either data or string editing. 1. Grammar: a ...

Posted by eric_e on Tue, 25 Jun 2019 17:33:20 -0700

How to Implement Dynamic Form Addition, Deletion and Change Checking in vue2

Recent projects have encountered the need to manipulate a large number of forms. Previous projects have done this research, but only with jquery to operate. Item A Let's start with a brief description of the application scenarios in project A. There may be similar requirements for small partners. Project A is a project in the company's OA syste ...

Posted by PallaviDalvi on Tue, 25 Jun 2019 16:18:54 -0700

treegrid scheduling problem under jqgrid

The data returned from the background by treegrid of jqgrid used in the project must be ordered data, otherwise clicking on the parent node and its direct child node are not below it. This problem is believed to be encountered by students who use the treegrid function of jqgrid. Processing options can be sorted either in the background or in t ...

Posted by jay7981 on Tue, 25 Jun 2019 14:09:26 -0700

Vue.js Learning 9 Components

I. Using Components 1. Registration Create a Vue instance: new Vue({ el: '#some-element', // option }) To register a global component, you can use Vue.component(tagName,options) Vue.component('my-component', { // option }) Use w3c rules (lowercase, with a short bar) as much as possible for custom tag names. After the component ...

Posted by jase01 on Tue, 25 Jun 2019 13:29:21 -0700

Teach you how to access public number blog barrage

I wonder if you have ever thought about this. When Wechat's personal public number is becoming more and more popular and the media is becoming more and more popular, have you ever thought about applying for a Wechat public number of your own? In the circle of friends, more and more small partners are forwarding articles in their Wechat Public N ...

Posted by jzimmerlin on Tue, 25 Jun 2019 10:59:26 -0700

Operation DOM for reading Zepto source

This article remains a domain-related approach, focusing on how to manipulate the domain. Read the Zepto Source Series article already on github, welcome star: reading-zepto Source Version The source code for reading this article is zepto1.2.0 .remove() remove: function() { return this.each(function() { if (this.parentNode != null) ...

Posted by Chips on Tue, 25 Jun 2019 10:24:54 -0700

The Realization of Data Statistics and Error Statistics of Wechat Small Program

In some cases, we need to count the behavior of some users of the applet, such as the UV of a page.PV, etc., statistics of the use of a function, etc. So that the product can understand the whole function of the product.In the website, many of us have used Google statistics. There are also some third-party databases in the applet, such as Tence ...

Posted by websesame on Tue, 25 Jun 2019 10:04:32 -0700