React setState event bus controlled component

React setState event bus controlled component Reference: Teacher Wang Hongyuan's React setState  During development, we cannot directly update the interface by modifying the value of state: After modifying the state, we want React to re render the interface according to the latest state, but React does not know that the data has changed;Re ...

Added by AjithTV on Fri, 21 Jan 2022 21:28:32 +0200

Front end H5 interview question Js: what are the common methods of JavaScript strings?

1, Preface: The common operation methods of strings can be summarized as add, delete, modify and query. You need to know that once a string is created, it is immutable. 2, Increase The meaning of adding is not to add content directly, but to create a copy of the string and then operate it. In addition to string splicing with + and ${}, you ...

Added by christophebmx on Fri, 21 Jan 2022 20:34:43 +0200

New API in Vue3

Common Composition API setup Vue3.0 is a newly added configuration item. The value is a functionsetup is the of all composition APIsThe data and methods used in the component need to be configured in the setup functionThere are two return values of the setup function: If the return is an object, the attributes and methods in the object can ...

Added by ericdorman on Fri, 21 Jan 2022 20:28:11 +0200

layui table handles wonderful background data and realizes the function of complex header fixed column

The company requires the implementation of complex header tables on mobile phones. The first column can be fixed and other sliding table functions. I have seen that this function is available in elementui, but its multi-level header needs to realize the object relationship between upper and lower levels, and the data returned to us by the backg ...

Added by blinks on Fri, 21 Jan 2022 20:09:56 +0200

Common methods of js array

There are several methods of array: join() push() and pop() shift() and unshift() sort() reverse() concat() slice() splice() indexOf() and lastIndexOf() (new in ES5) forEach() (new in ES5) map() (new in ES5) filter() (newly added in ES5) every() (ES5 added) some() (new in ES5) Common array methods 1.join() join is to convert an array int ...

Added by developer on Fri, 21 Jan 2022 19:42:16 +0200

[after reading, I will] teach you to write a markdown real-time editor with React step by step!

1. Achieve results Recently, I am writing a blog management system with React. One function is to add new articles. On the new article page, I want to do something like CSDN. On the left is the editing area (markdown format) and on the right is the preview area. Update in real time. While editing the text, you can see the effect in the preview ...

Added by atkman on Fri, 21 Jan 2022 17:38:33 +0200

Wechat applet development - dark horse Day4

Custom components Creation and reference of components Creation of components ① In the root directory of the project, right-click to create the components - > test folder ② Right click the new components - > test folder and click "new Component" ③ After entering the name of the component, press enter to automatically generate ...

Added by homchz on Fri, 21 Jan 2022 15:14:01 +0200

These five functions in VueUse are also very easy to use

By Matt MaribojocTranslator: front end XiaozhiSource: mediumThere are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials and my ser ...

Added by seed on Fri, 21 Jan 2022 14:44:12 +0200

Insensitive refresh token

When it comes to the login token, the product asks a question: can I make the token expire a little longer? I have to log in frequently. Front end: back end, can you set the token expiration time longer. Back end: Yes, but that's not safe. You can use a better method. Front end: what method? Back end: give you the interface to refresh the t ...

Added by billspeg on Fri, 21 Jan 2022 14:08:58 +0200

[take Vue in 49 days ❤️ Zhuji Lingye chapter ❤️] Getting started with Vue

catalogue 1, Foreword 2, Baidu Encyclopedia 3, Vue installation 4, Vue getting started syntax 1. Using Vue to implement hello world 2. vue list display 3. Implement simple counter 5, MVVM in vue 6, Understanding the vue lifecycle 1. Lifecycle code instance 2. Life cycle 3. Analyze the execution timing of life cycle related methods ...

Added by Hangston on Fri, 21 Jan 2022 12:38:26 +0200