The holes in layui that you stepped on.

Is Xiaobian a full-time front-end developer? It's just that it's becoming more and more difficult for programmers now. They have to learn more front-end frameworks to arm themselves. This is the first time I use layui. The first company uses only layui in the front end, so I have to learn. layui official document address: https://www.layui.co ...

Posted by luddeb on Mon, 16 May 2022 03:23:53 +0300

Functional programming

Functional programming Why should we learn functional programming and what it is, including the characteristics of functional programming (pure function, coritization, function combination, etc.) Functional programming is to use pure functions to realize some fine-grained functions, and then combine these fine-grained functions into more powerf ...

Posted by disconne on Sun, 15 May 2022 13:58:51 +0300

Try fresh vue3 0 - start after reading

background Continue the previous three articles: Try fresh vue3 0 - start with ToDoList (1) Try fresh vue3 0 - understand changes (2) Try fresh vue3 0-tyepscript development component (3) Before the formal development, you need to introduce the routing changes, which is even for vue3 0 to have a preliminary understanding and complete the infr ...

Posted by mjedman1 on Sun, 15 May 2022 12:54:02 +0300

Object property query, object method, understanding of deep and shallow copy

array definition Constructor var arr = new Array();//Using the constructor definition, when there is only one parameter, it represents the length of the array, and multiple parameters represent the array elements literal var arr1 = [];//literal iterate over the array for for(var i=0;i<arr.length;i++){ arr[i] } forEach, no termin ...

Posted by davissj on Sun, 15 May 2022 12:05:27 +0300

Basic JavaScript 4 -- function events and JSON

The first official account of this article: ELO's cabin, welcome to pay attention and view more content!!! function The code block stores a piece of code for processing a single task, and then calls it with a short command whenever necessary JavaScript has many built-in functions. Browser functions are not part of the core JavaScript l ...

Posted by TutorMe on Sun, 15 May 2022 09:34:48 +0300

Upload files locally in the project (the usage of cropper)

Scenario: The project needs to upload local files (pictures, videos, etc.) html provided input Tags can upload files < input type="file" /> //This will generate a button on the page, click to upload the file //But it is generally not used in this way, because the native button is not beautiful Add hideen attribute to the input tag, th ...

Posted by savedlema on Sun, 15 May 2022 02:03:26 +0300

[react framework] learning record 12 - learning and use record of react router 6

preface The code source is the teaching video of shangsilicon Valley in station B, which can be combined with the previous routing articles [react framework] learning record 9- learning how to use react router DOM The React Router is published to npm in three different packages: React Router: the core library of routing, which ...

Posted by ljschrenk on Sun, 15 May 2022 01:11:44 +0300

Vue.js basic syntax introductory statement Vue learning notes v-model bidirectional data binding

Vue.js basic grammar, introductory statements, Vue learning notes Learning website: https://www.bilibili.com/video/BV15741177Eh vue experience Responsive: once the data changes, the view will respond to the change el: specifies which element this Vue object is attached to Data: this attribute usually stores some data <div id="app"&g ...

Posted by IMP_TWI on Sat, 14 May 2022 13:40:34 +0300

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