09 2021 档案

摘要:集合常见方法 //集合封装 function set(){ this.items={} } set.prototype.add=function(val){ if(this.has(val))return false this.items[val]=val return true } set.pro 阅读全文
posted @ 2021-09-26 11:13 到此灬一游丿 阅读(203) 评论(0) 推荐(0)
摘要:链表结构 function linkedList(){ function Node(data){ this.data=data this.next=null } this.length=0 this.head=null } 链表添加元素方法 linkedList.prototype.append=f 阅读全文
posted @ 2021-09-07 21:11 到此灬一游丿 阅读(62) 评论(0) 推荐(0)
摘要:子组件:./components/toolbar.vue export default { name: "toolbar", props: { narrow:{ type:Boolean, required:true, } }, setup(props,context) { var narrow = 阅读全文
posted @ 2021-09-07 11:29 到此灬一游丿 阅读(1049) 评论(0) 推荐(0)
摘要:function Tree(){ this.root=null } function Node(v){ this.val=[v] this.left=null this.right=null } Node.prototype.Add=function(n){ if(this.val[0]>n.val 阅读全文
posted @ 2021-09-03 17:47 到此灬一游丿 阅读(47) 评论(0) 推荐(0)