摘要:
//Method--方法:和某一个对象实例有联系 //function--函数 //封装栈类 function Stack() { //栈的属性 this.items = [] //栈的向光操作 //1.将元素压入栈内 // this.push = function () { }//此方式相当于给某 阅读全文
摘要:
知识点一: Vue面试中,经常会被问到的面试题/Vue知识点整理 阅读全文
摘要:
<h1 class="heading"> <button>fire</button> <button>Dancer</button> <button>Ice Cream</button> <button>Hamburger</button> <button>Fish</button> </h1> / 阅读全文
摘要:
// weakSet 基础用法 let jelly = {name:'jelly',age:20}; let mary = {name:'mary',age:25}; const weakPeople = new WeakSet([jelly,mary]) console.log(weakPeopl 阅读全文
摘要:
// Proxy 基础用法 const person = { name:'laravist', age:2000 } const personProxy = new Proxy(person,{ get(target,key){ return target[key].toUpperCase(); } 阅读全文
摘要:
Generator实例,维护多个ajax依次执行的队列 ps 需要提前引入<script src="https://unpkg.com/axios/dist/axios.min.js"></script>// Generator实例,维护多个ajax依次执行的队列 function ajax(url 阅读全文
摘要:
// 基础语法 const repos = [ {name:'grit'}, {name:'js'}, {name:'php'} ] function* loop(arr){ console.log(arr) for(const repo of arr){ yield repo } } const 阅读全文
摘要:
Array.prototype.values = function(){ let i = 0; let self = this return { next(){ const done = i>= self.length const value = done? undefined : self[i++ 阅读全文
摘要:
//基础语法function People(name,email){ name, email } class User{ constructor(name,email){ this.name = name; this.email = email; } getinfo(){ console.log(t 阅读全文
摘要:
个人应用记录,方便随时copy use promise应用实例,Promise.all(),Promise.race() const repos = [ {name: 'grit', owner: 'mojombo', description: 'Grit is no longer maintain 阅读全文