From how to use to how to implement a Promise

preface In this article, we will learn how to use Promise and how to implement our own Promise. The explanation is very clear. We will implement it step by step in the whole process, with detailed notes and principle explanation. If you think this article is helpful to you, ❤️ Follow + like ❤️ Encourage the author, the official account and the ...

Posted by Kerant on Mon, 10 Jan 2022 06:39:11 +0100

[JS reverse hundred examples] infinite debugger and data dynamic encryption analysis of an air quality monitoring platform

Focus on official account dry cargo WeChat public: K brother crawler, keep sharing crawler advance, JS/ Android reverse technology dry goods! statement All contents in this article are for learning and communication only. The packet capturing content, sensitive website and data interface have been desensitized. It is strictly p ...

Posted by sherrilljjj on Mon, 10 Jan 2022 03:20:19 +0100

The parent component of vue uses $emit, $on, $off to pass values

Child components can use $emit to let parent components listen to custom events. vm.$emit( event, arg ); // Trigger the event on the current instance. Arg is the parameter passed to the parent component vm.$on( event, fn );// Run FN after listening for event events vue It also implements the observer mode and provides methods such as subscri ...

Posted by bassdog65 on Mon, 10 Jan 2022 02:58:53 +0100

npm and packages (develop your own packages)

Initialize the basic structure of the package Create a new demo-tools folder as the package directoryIn the demo-tools folder, create the following three new files package.json (Package Management Profile) index.js (entry file for package) README.md (package documentation) 1. Initialize package.json { "name":"demo-tools", "version": ...

Posted by CodeJunkie88 on Sun, 09 Jan 2022 19:51:06 +0100

[JavaScript Weekly #570] Compare Svelte and React

🥳 Welcome interested partners to do something meaningful together!I launched a weekly translation program, Warehouse address,Access address There is still a shortage of like-minded partners. They are purely personal interests. Of course, they will also help to improve English and front-end skills. Requirements: English is not too bad, githu ...

Posted by jspodisus on Sun, 09 Jan 2022 16:13:32 +0100

js time object

1, What is a time object Store recording time data 2, Time object creation syntax Create time object through constructor There are no parameters to create a time object of the current time by default var variable = new Date(); Set parameters to create a time object at a specified time var variable = new date (parameter); //Time ...

Posted by cytech on Sun, 09 Jan 2022 14:40:16 +0100

Analysis of Vue Router in the 29th issue of Blue Bridge Cup Blue Bridge cloud course building competition

#0. The console commands prompted to download in the front row can be pasted directly by shift+insert without typing a little. Path redirection starting with #1 multiple slashes There is more than one / match here, so it is changed to greedy regular expression, which is / \ / + / g export function cleanPath (path: string): string { retur ...

Posted by 4rxsid on Sun, 09 Jan 2022 12:19:54 +0100

On dynamic programming and dfs

prefaceIt is still necessary to learn the front-end algorithm. Not to mention that large factories test the algorithm in interviews, but when doing the permission module, if you don't understand the algorithm, you can't write the user-defined traversal of the tree structure.Today, I will make a summary of the dynamic programming and dfs encount ...

Posted by anhedonia on Sun, 09 Jan 2022 06:34:48 +0100

[JS reverse hundred examples] PEDATA encryption information and zlib Application of gunzipsync()

statement All contents in this article are for learning and communication only. The packet capturing content, sensitive website and data interface have been desensitized. It is strictly prohibited to use them for commercial and illegal purposes, otherwise all the consequences have nothing to do with the author. If there is infringement, pl ...

Posted by skurai on Sun, 09 Jan 2022 05:19:05 +0100

Introduction to Vue Router

1, Basic use of Vue Router 1. Install Vue router plug-in npm install vue-router --save Link: Vue Router documentation 2. Create routing instance import Vue from 'vue' import VueRouter from 'vue-router' import listTemplate from '@/view/demo/listTemplate.vue' Vue.use(VueRouter) const routes = [ { path: '/demo', component: l ...

Posted by donbonzo on Sun, 09 Jan 2022 04:12:10 +0100