Vue uses mockjs to generate simulation data

Mockjs generates simulation data When developing the front-end, we need to get the interface of the back end, then call to get the data provided by the back end. But in the actual situation, it is possible that the back-end interface has not been designed, but you want to get the data for testing. What should you do at this time? At this time ...

Added by brotherhewd on Sat, 19 Feb 2022 20:34:22 +0200

Browser kernel, arrays, and strings

Composition of browser shellKernel part Rendering engine (syntax rules and rendering)js engine Javascript consists of three parts: ECMAScript, DOM and BOM Compiling language: C, C + +, Advantages: fastInsufficient: poor portability (not cross platform) Interpretation language: Javascript Advantages: cross platform, single threadInsuff ...

Added by ajanoult on Sat, 19 Feb 2022 18:46:17 +0200

Vue.js front-end framework: custom instructions

1. Why define custom directives After studying the Vue front-end framework, we also know many built-in instructions, such as v-for instruction, v-if instruction, v-bind instruction, v-model instruction and so on. However, because these built-in instructions tend to be instrumental, and sometimes it is necessary to implement specific business l ...

Added by dr.maju on Sat, 19 Feb 2022 15:19:47 +0200

html+css+js to achieve the countdown effect

If you are Xiaobai, this set of information can help you become a big bull. If you have rich development experience, this set of information can help you break through the bottleneck 2022web full set of video tutorial front-end architecture H5 vue node applet Video + data + code + interview questions. catalogue Write in frontGeneral effectC ...

Added by windjohn on Sat, 19 Feb 2022 11:15:39 +0200

You understand map, set, array in js. From ()

1. Use of Map objects in Js (new in es6) Map objects hold key/value pairs, which are collections of key/value pairs. Any value (object or original value) can be used as a key or a value. The Object structure provides a string-value correspondence, and the Map structure provides a Value-Value correspondence. Map is the structure of a set of ke ...

Added by sdaniels on Sat, 19 Feb 2022 08:42:10 +0200

Web Components series -- realizing the reusability of MyCard

prefaceIn the previous section, the basic layout of MyCard was implemented using Templates, and I also said at the end of the article that because it is not reusable, its practicability is basically zero.Today, we use named Slots to occupy a place in Templates, and then pass values to Slots in custom elements to improve the flexibility of custo ...

Added by premiso on Sat, 19 Feb 2022 05:21:00 +0200

javascript -- prototype and prototype chain

prototype In JavaScript, each function has a prototype attribute, which points to the prototype object of the function. For example: function Person(age) { this.age = age } Person.prototype.name = 'kavin' var person1 = new Person() var person2 = new Person() console.log(person1.name) //kavin console.log(person2.name) //kavin In ...

Added by Gurzi on Sat, 19 Feb 2022 04:28:35 +0200

Vue cropper image clipping

Transfer from https://gitee.com/zwj946/vue_cropper gitee Study~ <template> <div class="hello"> <div class="before"></div> <iy-button style="margin: 30px auto;" type="error" @click="sureSava">Cutting</iy-button> <div class="container"> <div class="img-container"> < ...

Added by justsomeone on Sat, 19 Feb 2022 03:05:10 +0200

JavaScript_DOM programming art Chapter05 best practices, Chapter06 picture library improved version -- 20210427

Chapter05 link Pseudo protocol Pseudo protocol that can be used to link JavaScript functions: javascript: <a href="javascript:function_name(parameter)">Example</a> <a href="javascript:pop('http://www.baidu.com/')">Example</a> This is a very bad practice. It can only be used in browsers that support pseudo protocol ...

Added by tartou2 on Sat, 19 Feb 2022 01:59:27 +0200

Deep understanding of Promise, the core of JS asynchronous programming

In fact, before the emergence of ES6 standard, the community first put forward the Promise scheme. Later, with the addition of ES6, its usage was unified and native Promise objects were provided. Promise basic information If you have to explain what Promise is, it is simply a container that holds the results of an event (usually asynchronou ...

Added by storyboo on Sat, 19 Feb 2022 00:41:09 +0200