12 2021 档案

摘要:点击查看代码 //先是有俩函数 var info = { name: '巴拉拉小魔仙', age: 1000 }; var obj = { title: '震惊!拜登再次摔跤', description: '登机时被风吹倒' }; let activeReactiveFn = null; // 编写 阅读全文
posted @ 2021-12-30 23:04 睡成蛆 阅读(56) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/51197940/file-name-differs-from-already-included-file-name-only-in-casing-on-relative-p For me, the issue occurred 阅读全文
posted @ 2021-12-19 17:43 睡成蛆 阅读(1359) 评论(0) 推荐(0)
摘要:1、Object.getOwnPropertyNames() 返回 对象 自身及原型链上所有的属性名的数组 2、Object.keys() 返回 对象 自身及其原型链上可枚举的属性名的数组 3、for (key in object) 与2、Object.keys()相同 4、Ojbect.value 阅读全文
posted @ 2021-12-11 15:51 睡成蛆 阅读(1887) 评论(0) 推荐(0)
摘要:封装一个对cookie操作的模块废话不说直接上代码 cookie.js 点击查看代码 const set = (name,value,{maxAge,domain,path,secure} = {}) => { let cookieStr = `${encodeURIComponent(name)} = ${encodeURICo 阅读全文
posted @ 2021-12-09 15:57 睡成蛆 阅读(65) 评论(0) 推荐(0)
摘要:组件化开发之父子组件之间通信练习,商品页面的切换最终实现 SFC文件 app组件 点击查看代码 <template> <tab-control :titles='titles' @tabClick="hundleTabClick"></tab-control> <h2>{{contents[currentIndex]}}</h2> </templ 阅读全文
posted @ 2021-12-01 17:44 睡成蛆 阅读(81) 评论(0) 推荐(0)