Basic use and local installation of EasyMock

1. EasyMock data interface 1.1 what is EasyMock Easy Mock is a visual service that can quickly generate simulation data. It is an online Mock service produced by Hangzhou big search car wireless team, which is extremely simple, efficient, visual and can quickly generate simulation data. Now easy Mock has built-in Mock JS, we can forge data more ...

Posted by Seona on Sat, 21 May 2022 16:22:50 +0300

Function anti-shake of JavaScript common skills

Execute the event after a period of time, and if it fires again within this period, continue to wait for the same amount of time. Anti-shake is still used in many scenarios in actual development, such as real-time search of lists. Delayed execution, it is easy to think of using setTimeout to achieve. Basic Edition function debounce(func, wait) ...

Posted by Ang3l0fDeath on Sat, 21 May 2022 16:02:10 +0300

The first stage of vue's learning journey

1. Introduction to Vue (1) Several key words Template Data binding Componentization Virtual DOM MVVM mode (2) Small features vue can easily introduce plug-ins or third-party libraries (very convenient) It is very convenient and small in size. It is suitable for mobile terminal / pc terminal development (3)MVVM Model: model, data object View ...

Posted by mfacer on Sat, 21 May 2022 14:41:45 +0300

react/vue markdown editor component

In fact, there are many markdown editor plug-ins. It really doesn't make sense to build wheels repeatedly, but I actually want a markdown editor that can directly upload pictures to qiniu cloud. It feels a little meaningful to me, so such a thing was born characteristic You can directly upload pictures to qiniu cloud by simply setting an extern ...

Posted by fiorelina21 on Sat, 21 May 2022 13:47:31 +0300

Generator learning record

generator Basics The generator has the ability to pause and resume code execution within a function block.Create generator://The asterisk identifying the generator function is not affected by the spaces on both sides function* generator(){ ... } Note: arrow functions cannot be used to define generator functionsCalling the generator f ...

Posted by Coreyjames25 on Sat, 21 May 2022 05:20:49 +0300

Implementation of 1v1 audio and video chat room based on WebRTC

I preface WebRTC (Web real time communication) aims to introduce the real-time communication function into browsers. Users can carry out real-time communication between browsers without installing any other software or plug-ins. This paper introduces the realization of one-to-one audio and video real-time chat room function based on WebRTC. Th ...

Posted by fizzystutter on Sat, 21 May 2022 02:11:17 +0300

Tamping foundation - hand tearing js inheritance

When it comes to JS inheritance, what do you think of first? Advantages and disadvantages of interview inheritance method, JS as a former sufferer, I read and forgot, forgot to see, read and forget, forget it, can't I give up treatment On the vast prairie, ten thousand grass mud horses are galloping. It's been 9012 years. The interviewer hasn't ...

Posted by Angus on Fri, 20 May 2022 21:01:14 +0300

Common methods of string

1.trim() The trim() method removes the white space characters at both ends of the string. The white space characters in this context are all white space characters let getting = ' Hello Word' console.log(getting); //' Hello Word' console.log(getting.trim()); //'Hello Word' 2. length Length indicates the length o ...

Posted by nut legend on Fri, 20 May 2022 03:58:16 +0300

Basic knowledge of JS (covering basic interview questions)

Summarize some basic front-end knowledge. Some knowledge may be asked during the front-end interview, so making a record will also help others check. If there are any questions, you can point them out and actively correct them. Variable types and calculations What are the types of typeof in JS console.log(typeof undefined); //undefi ...

Posted by AMV on Fri, 20 May 2022 02:05:46 +0300

VUE conditional rendering

catalogue 1. v-if 1.1 template 1.2 v-else 1.3 v-else-if 1.4 manage reusable elements with key 2.v-show 3.v-if vs v-show 4. Use V-IF with v-show 1. v-if The v-if instruction is used to render a piece of content conditionally. This content will only be rendered when the expression of the instruction returns the truth value. < ...

Posted by PerfecTiion on Fri, 20 May 2022 01:08:21 +0300