04 2023 档案
摘要:错误: 问题原因:安装包各个版本冲突解决办法:npm i --legacy-peer-deps 忽略各种报错命令npm i --legacy-peer-deps --ignore-scripts --registry=https://registry.npm.taobao.org 然后重新安装 np
阅读全文
摘要:官网:https://uniapp.dcloud.net.cn/tutorial/renderjs.html#%E7%A4%BA%E4%BE%8B 使用renderjs 引入echarts (不支持小程序【支持app和H5】) 官网例子:https://ext.dcloud.net.cn/plugi
阅读全文
摘要:1、阻止向下冒泡 <div @click.self="cancelFunc"></div> 2、阻止向上冒泡 <div @click.stop="cancelFunc"></div>
阅读全文
摘要:html: <span id="item"data-test='test' ></span> 方法一、原生JS的 getAttribute 获取自定义属性 设置属性 .setAttribute("属性","值") 获取属性 .getAttribute("属性") var span=document.
阅读全文
摘要:Javascript: 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.
阅读全文