02 2023 档案

摘要:npm i vue-ls 新建 storage.ts import Storage from 'vue-ls'; const options = { namespace: 'vuejs__', // key prefix name: 'ls', // name variable Vue.[ls] o 阅读全文
posted @ 2023-02-20 13:16 越甲鸣吾君 阅读(966) 评论(0) 推荐(0)
摘要:获取已有的dom 元素 const arrows = document.querySelectorAll('.arrows'); 获取DOM数组,比如有时候只有在请求数据后界面才渲染,我是在vue里面需要处理一些罗里吧嗦的功能用了下 let divs:NodeListOf<Element> ; di 阅读全文
posted @ 2023-02-17 10:33 越甲鸣吾君 阅读(289) 评论(0) 推荐(0)