这位怪蜀黍 早上好,早起的鸟儿有虫吃噢!早起的虫儿被鸟吃,你是鸟儿还是虫儿?嘻嘻!

12 2023 档案

摘要:<div class="nav-box" @scroll="scroll"> <div for="list" class="nav"> <div class="item-box">item</div> </div> </div> <div class="scroll-box" v-show="lis 阅读全文

posted @ 2023-12-08 15:51 WALL*E 阅读(71) 评论(0) 推荐(0) 编辑

摘要:因为要封装组件涉及到嵌套问题,发现小程序不能循环使用slot,烦死了。又要达到预期效果只能用虚拟节点,官网有介绍。 当前情景有A、B、C三个组件 展示在index.wxml中,A是最外层swiper组件,B是第二层scrollview组件,C就是需要渲染的内容。 由于C内容之前写的是分散的需要整理为 阅读全文

posted @ 2023-12-07 15:03 WALL*E 阅读(503) 评论(0) 推荐(0) 编辑

摘要:获取到时间差为毫秒,可以转为时分秒,自行处理, getTimestamp(){ let nowB = new Date().getTime() let form = new Date() let y = form.getFullYear(); let m = form.getMonth()+1; l 阅读全文

posted @ 2023-12-01 15:30 WALL*E 阅读(47) 评论(0) 推荐(0) 编辑

摘要:vue项目 新建文件sessionTime.js 文件 /** @desc storage相关 */ // type TStorageItem = { // value: any // expire: string|number // time: Date // }; // type = 'loca 阅读全文

posted @ 2023-12-01 15:28 WALL*E 阅读(243) 评论(0) 推荐(0) 编辑

摘要:需要 npm install vue-pdf 和 npm install pdfjs-dist,新建js文件 pdtToImg.js: import pdf from "vue-pdf"; import JsPDF from 'pdfjs-dist'; const PDFJS = require(' 阅读全文

posted @ 2023-12-01 15:22 WALL*E 阅读(325) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示