Ajax basic learning

Ajax learning Ajax can update the page content without refreshing the page Ajax is used to check whether the user name can be used The difference between XML and HTML: there are predefined tags in HTML. For example, a is the hyperlink tag, span is the inline element tag, and there are no predefined tags in XML Ajax can update the conte ...

Posted by cliftonbazaar on Sat, 14 May 2022 11:31:52 +0300

The small program canvas 2d is a solution for drawing high-definition pictures. It can generate 10M posters at most, which solves the problem of failure to generate pictures under android with too large width and height.

wx.canvasToTempFilePath As we all know, wechat canvas needs to call this interface to generate pictures. If this interface wants to generate high-definition pictures and solve the problem of font blur, it needs destWidth * dpr. The width and height of the original canvas is too large, coupled with destWidth * dpr, will inevitably lead to the wi ...

Posted by phppaper on Sat, 14 May 2022 11:22:10 +0300

js new is an object process that implements a simple new method

For most front-end developers, it is a very common operation to get the corresponding instance of a constructor or class. In the following example, a simple process of creating an instance is realized through the constructor and class class respectively. // ES5 Constructor let Parent = function (name, age) { this.name = name; this.age ...

Posted by raidon on Sat, 14 May 2022 06:47:51 +0300

Explanation of implementation principle of Mini Pack

The article started on my blog https://github.com/mcuking/bl...Implementation source code, please refer to https://github.com/mcuking/bl... This paper mainly describes how to implement a front-end application packer similar to webpack step by step. The essence of webpack In essence, webpack is a static module bundler for modern JavaScript appli ...

Posted by ryanlwh on Sat, 14 May 2022 04:32:07 +0300

Wechat applet - how to obtain the value in the user's form control (traditional form and non form methods to obtain the value of form components)

background Forms are often used in applet development. We often need to obtain the values in the user's form input box at the applet side (usually the user inputs: switch,input,checkbox,slider,radio,picker), trigger events, and then submit them to the back-end for processing So what are the ways to get the value in the form in the applet, and h ...

Posted by clodius on Sat, 14 May 2022 02:42:17 +0300

Front end training - intermediate stage (42) - use of axios and how to combine it with vue

The most basic front-end is HTML+CSS+Javascript. Mastering these three technologies is just an introduction, but it is only an introduction. Now the definition of front-end development is far more than that. Front end small class (HTML/CSS/JS), in line with the central idea of improving the technical level and laying a solid foundation for basi ...

Posted by jonstu on Fri, 13 May 2022 20:54:19 +0300

JS review - JS light copy and deep copy

A shallow copy copies only one layer, while a deeper object level copy copies only references. Deep copy has multiple layers, and data at each level will be copied. Generally speaking, it is assumed that B copies A. when a is modified, if B changes, it is a shallow copy, and if B does not change, it is a deep copy. In depth, B copies A. i ...

Posted by nicelad_uk on Fri, 13 May 2022 18:30:21 +0300

Collision detection: Transformation

Introduction stay Collision Detection : Triangle The collision detection of triangles is considered from another idea. So far, the introduction is static detection, and then let's take a look at dynamic collision detection. The following examples are not checked for compatibility. It is recommended to view them in the latest Chrome browser. Or ...

Posted by JankaZ on Fri, 13 May 2022 16:33:57 +0300

JS end: write a fully functional e-commerce rotation chart with JavaScript

Rotation chart: automatic rotation + click the corresponding point to switch + next + menu navigation Let's talk about the idea first, and then the code: First take the overall HTML layout, first rotate the map, and then click the corresponding small circle to jump to the previous one and the next one. Then the layout of the left menu bar, th ...

Posted by bluntster on Fri, 13 May 2022 14:33:24 +0300

v-on instruction and its parameter passing and modifier

v-on 1. Foundation Official document link https://cn.vuejs.org/v2/api/#v-on Function: binding event listening. The event type is specified by the parameter. The expression can be the name of a method or an inline statement, and can be omitted if there is no modifier. Expected: Function | Inline Statement | Object Syntax: <di ...

Posted by yellowepi on Fri, 13 May 2022 07:48:51 +0300