when reading teacher Ruan Yifeng s ES6 tutorial, in the arrow function chapter, in the section on this pointing, there is such an example function foo() { setTimeout( () => { console.log( this.id: ,this.id); },100); } var id = 21...
you can often see the method of converting a pseudo array into a true array on the Internet; similar to let pretendArr = {0:0,1:1,2:2,length:3}; [].slice.call(pretendArr); [0,1,2] so why? Why can it be converted to a true array? I hope someone can h...
is mainly a bit of a problem with code execution, so I won t list the use of dealing with apply and call here. The code is as follows. I don t understand it from Code 2. I don t understand even if I look at the ECMAScript standard. I hope I can get a...
I briefly understand the use of call in js, which is used to change the direction of this. For example: var fn1=function(){ console.log(1); } var fn2=function(){ console.log(2); } fn1.call(fn2); fn2thisfn1,1. elementsNodeList var elements=docu...
from the lifecycle icon of the official document , some operations are performed from new Vue to beforeCreate . This should be an initialization of the Vue itself. from official document , from beforeCreate to created , data observation (data ...
the url, used by Cloud Collaborative online Preview of word documents can be seen to be the official domain name of Microsoft. https: word-view.officeapps.live.com wv wordviewerframe.aspx?ui=zh-cn&access_token=5b5c76d962e6efdcc18bf9793afb409b&WOPISr...
error message: Fri Mar 23 2018 17:18:15 GMT+0800 (China Standard time) render layer error < navigator > should have url attribute when using navigateTo, redirectTo or switchTab ...
for example, how to render name and age in data to homepage template? < hr > var vm = new Vue({ el: -sharpapp , router,data: { name: "A", age: 20,link:"" } }); const router = new VueRouter({ routes: [ {path: , c...
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=...