ECMAScript
Personnel Project (login page) 1. About environment variable-port configuration vue.config.js is a vue project-related configuration file for compiling, configuring, packaging, and starting services. Its core is webpack Setting proxy in vue.config.js devServer: { proxy: { '/api' : { target: 'TaUTF-8...
Posted by Josh1billion on Thu, 13 May 2021 06:40:43 +0930
Nine cross domain implementation principles (full version) preface Front end and back-end data interaction often encounter request cross domain, what is cross domain, and what kinds of cross domain methods are there, which is the content of this paper. This article complete source code please sUTF-8...
Posted by ierpe on Sun, 16 May 2021 06:10:23 +0930
Introduction to ECMAScript 6 ECMAScript 6.0 (hereinafter referred to as ES6) is the next generation standard of JavaScript language, which has been officially released in June 2015. Its goal is to make JavaScript language can be used to write complex large-scale applications and become an enterUTF-8...
Posted by markbm on Fri, 28 May 2021 03:41:02 +0930
one side 1. Algorithm problem: realize a link, you can add nodes, delete nodes function insert(head, n ,val) { var node = { val: val, next: null } if (head == null) { return node } if (n === 0) { node.next = head; return node; } var p = head; for(var i=0; i
Posted by expostfacto on Sat, 29 May 2021 07:35:44 +0930
preface As one of the new conventional array methods in ES5, reduce seems to be ignored in practice compared with forEach, filter and map. It is found that people around them seldom use it, which leads to the gradual disappearance of such a powerful method. If you often use reduce, how can you UTF-8...
Posted by dennyx on Sat, 05 Jun 2021 05:24:52 +0930
Because the Generator can pause the function execution and return the value of any expression, it has a variety of application scenarios. This article briefly sorts out some usage scenarios of the Generator. 1, Synchronous expression of asynchronous operation The Pause effect of the Generator fUTF-8...
Posted by English Fire on Tue, 08 Jun 2021 03:25:30 +0930
npx Avoid installing global modulesCall the module installed inside the project npm run will create a new shell and add node_ Add modules to system environment variables and delete them after running Why React Hook It is difficult for components to reuse state logicComplex components are difficUTF-8...
Posted by kslagdive on Sat, 12 Jun 2021 02:45:21 +0930
Basic concepts The reduce() method executes the callback function for each element in the array in turn (excluding the elements deleted or never assigned) and returns a specific result. grammar reduce() receives two parameters. Its basic syntax is as follows: arr.reduce(callback,[initialValue]UTF-8...
Posted by The Bat on Sun, 13 Jun 2021 04:54:19 +0930
1, Before explaining async and await, let's create three common functions, as follows: export default { created() { function funOne() { return '111111' } function funTwo(){ return '222222' } function funThree(){ return '333333' } function run (){ console.log(funOUTF-8...
Posted by brandondrury on Sun, 13 Jun 2021 05:15:29 +0930
Extension of object A concise representation of attributes ES6 allows variables and functions to be written directly in curly brackets as attributes and methods of objects.This writing is more concise const foo = 'bar'; const baz = {foo}; baz // {foo: "bar"} // Equivalent to const baz = {foo: fUTF-8...
Posted by laradg on Mon, 14 Jun 2021 02:24:18 +0930