Complex data processing and structure transformation

9.1 Any ↔ character string When developing data applications, most of the data will not be generated in real time by JavaScript or user operations, but will be extracted directly from the data storage facilities of the server, and then transmitted to the client through network protocol for display. In this case, we can first introduce ...

Posted by magic123 on Thu, 30 Dec 2021 15:42:22 +0100

How to write a rich text editor from scratch (parse slate source code, serialization)

background The document is very popular recently, and the boss wants it too. I was also very interested, so I went into the pit to study and practice. In the blink of an eye, a year has passed, and the project has achieved initial results, but the difficulties and challenges are becoming more and more difficult. So I deeply studied and adapted ...

Posted by kaze on Thu, 30 Dec 2021 13:07:58 +0100

Vue learning notes -- 4 Vuex

Vue learning notes – 4 Vuex 4. Vuex Concept: a Vue plug-in dedicated to centralized state (data) management in Vue, which centrally manages (reads / writes) the shared state of multiple components in Vue applications. It is also a way of communication between components, and is suitable for communication between any components. Github ...

Posted by Plakhotnik on Thu, 30 Dec 2021 08:25:12 +0100

State secret encryption sm4 front and back end code

1, Front end sm4.js /** * base64js * base64js.toByteArray(d.input) * base64js.fromByteArray(c); *State secret SM4 encryption algorithm * @author wzk * @email 1216113487@qq.com *@ company Zhongke software */ (function(r){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=r( ...

Posted by pkenny9999 on Thu, 30 Dec 2021 02:34:33 +0100

Review JavaScript advanced 01 - built in object - prototype object - constructor

catalogue Built in object Constructor Prototype object summary Built in object Built in object api: the object written in advance by the js author. There are some predefined methods. We can use them directly without caring about the principle api: predefined functions For example: Addition, deletion, modification and query of arr ...

Posted by activeserver on Wed, 29 Dec 2021 21:41:41 +0100

vue components and communication slots

catalogue Component communication The parent component passes data to the child component  props The child component passes data to the parent component Multiple parameters Communication between non parent and child components How many ways can Vue components communicate with each other?   slot Anonymous slot Named slot Slot sc ...

Posted by tomtomdotcom on Wed, 29 Dec 2021 11:50:25 +0100

Introduction to FileReader of JavaScript and examples of how native and uniapp convert files into base64 encoded strings

Use the FileReader object to view the MDN official description for details click here . Introduction to FileReader object Method of FileReader object: methodparameterbrief introductionexplainFileReader.readAsBinaryString(blob)Blob or File object to be readRead file as binary encodingThe specified Blob or File object will be read. When the r ...

Posted by Dargrotek on Wed, 29 Dec 2021 11:41:38 +0100

Getting started with HTML Basics

Getting started with HTML Basics 1.1 overview of basic grammar HTML tags are keywords surrounded by angle brackets, such as < HTML >.HTML tags usually appear in pairs, such as < HTML > and < / HTML >, which are called Double tags. The first tag in the double tags is the start tag and the second tag is the end tag.Some specia ...

Posted by rodneykm on Wed, 29 Dec 2021 11:26:38 +0100

MySQL uses regular expressions

Regular expressions are mainly used to query and replace text content that conforms to a certain pattern (rule). They are powerful and flexible. They are often used in very complex queries. Compared with LIKE, the matching rules are very comprehensive. In MySQL, use the REGEXP keyword to specify the character matching pattern of regular expres ...

Posted by ihsreal on Wed, 29 Dec 2021 10:22:42 +0100

Vue2.0 and Vue3.0 Dom Diff comparison

In increasingly sophisticated front-end applications, state management is a frequently mentioned topic. From the early days of slash and burn to jQuery, and now to the popular era of MVVM, the form of state management has changed dramatically. Instead of updating the view by maintaining a wide range of event callbacks and monitoring, we use two ...

Posted by PHPnewby! on Wed, 29 Dec 2021 07:28:58 +0100