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