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
阅读全文
摘要:链表结构 function linkedList(){ function Node(data){ this.data=data this.next=null } this.length=0 this.head=null } 链表添加元素方法 linkedList.prototype.append=f
阅读全文
摘要:子组件:./components/toolbar.vue export default { name: "toolbar", props: { narrow:{ type:Boolean, required:true, } }, setup(props,context) { var narrow =
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号