2024年9月26日
摘要: 找的插件,自己写要做一堆兼容麻烦死了 使用的这个插件vue-signature-pad,看下载量很多 npm i vue-signature-pad import { VueSignaturePad } from 'vue-signature-pad'; components: { VueSigna 阅读全文
posted @ 2024-09-26 21:46 北极熊的菜 阅读(0) 评论(0) 推荐(0) 编辑
  2024年8月28日
摘要: <template v-for="(item,index) in info.data" :key="index" > <div class="sub-set" draggable="true" @dragstart="dragstart($event,index)" @dragover="drago 阅读全文
posted @ 2024-08-28 15:10 北极熊的菜 阅读(1) 评论(0) 推荐(0) 编辑
  2024年8月15日
摘要: 最终解决!nodejs 全局下载的模块,无法调用问题 亲测,解决了问题,百度到一堆水文章,不知道哪抄的 阅读全文
posted @ 2024-08-15 18:53 北极熊的菜 阅读(1) 评论(0) 推荐(0) 编辑
  2024年6月5日
摘要: 大佬的博客 三种前端实现VR全景看房的方案!说不定哪天就用得上! 网上百度了一下,有多种实现方式,这里测试了其中一种 pano2vr 做出来这个样子 首先打开 红框内容自己设置,中文都能看懂,导出,搞定 阅读全文
posted @ 2024-06-05 14:53 北极熊的菜 阅读(7) 评论(0) 推荐(0) 编辑
  2024年5月16日
摘要: 磨了两天半磨出来的功能 exceljs官网 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md 贴个demo图 上代码: 引入: import ExcelJS from 'ExcelJS'; 数据: data() { return { 阅读全文
posted @ 2024-05-16 17:59 北极熊的菜 阅读(339) 评论(0) 推荐(0) 编辑
  2024年4月30日
摘要: onActivated(() => { this.searchRecordList.value = localStorage.getItem('searchRecord') ? JSON.parse(localStorage.getItem('searchRecord') as string) : 阅读全文
posted @ 2024-04-30 15:31 北极熊的菜 阅读(2) 评论(0) 推荐(0) 编辑
  2024年4月19日
摘要: 全局环境中,this 默认指向到 window; 函数独立调用(不论这个函数在哪调用),this 默认指向到 window; document.getElementById('div1').onclick = function () { function a() { console.log(this 阅读全文
posted @ 2024-04-19 16:01 北极熊的菜 阅读(1) 评论(0) 推荐(0) 编辑
  2024年2月19日
摘要: 需求是的单行文本溢出的时候显示展开按钮,需要判断文本是否有溢出 不知道还有没更好的方法,讲究用了,233 阅读全文
posted @ 2024-02-19 15:10 北极熊的菜 阅读(18) 评论(0) 推荐(0) 编辑
  2023年11月25日
摘要: https://www.zhihu.com/column/c_1216656665569013760 集合的运算 set2 = {1, 3, 4, 5, 6, 7, 8} set3 = {4, 5, 6, 7, 8, 9, 0, '1', 'a'} # 交集 # print(set2 & set3) 阅读全文
posted @ 2023-11-25 11:04 北极熊的菜 阅读(2) 评论(0) 推荐(0) 编辑
  2023年10月27日
摘要: 构造指定长度的数组 Array.from({length:1000}) 填充指定格式的模拟数据 //用10填充数据 Array.from({length:1000}).fill(10) (1000) [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1 阅读全文
posted @ 2023-10-27 14:32 北极熊的菜 阅读(29) 评论(0) 推荐(0) 编辑