![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
枫依流水
第一
展开
-
yarn无法在win10的powershell运行,yarn无法在powershell运行,npm无法在powershell运行
windows中运行yarn 和 npmPowerShell yarn : 无法加载文件 C:\Users\Admin\AppData\Roaming\npm\yarn.ps1,因为在此系统因为在此系统上禁止运行脚本。解决办法:以管理员身份运行 powershell ,然后在控制栏输入 set-ExecutionPolicy RemoteSignedPS C:\Windows\system32> set-ExecutionPolicy RemoteSigned执行策略更改执行策略可帮原创 2021-04-12 11:27:57 · 2907 阅读 · 0 评论 -
node-sass 安装失败的解决
1.初步诊断是node-sass安装有问题![image.png](https://img-blog.csdnimg.cn/img_convert/24059d8558dcf321d67685e0ce608394.png#align=left&display=inline&height=364&margin=[object Object]&name=image.png&originHeight=728&originWidth=1044&size=10原创 2021-03-15 19:47:46 · 342 阅读 · 0 评论 -
better-scroll 滚动插件better-scroll无法滚动
better-scroll 是一款重点解决移动端(已支持 PC)各种滚动场景需求的插件。它的核心是借鉴的 iscroll 的实现,它的 API 设计基本兼容 iscroll,在 iscroll 的基础上又扩展了一些 feature 以及做了一些性能优化。项目中遇到了BScroll是使用了 better-scroll 插件。遇到问题:内容无法滚动问题原因:排查语法写的没问题,问题出在获取dom right-header-table 。项目中存在多个重名right-header-table原创 2021-02-19 19:00:36 · 372 阅读 · 2 评论 -
[BScroll warn]: Can not resolve the wrapper DOM. 的解决
维护项目时,遇到错误如下:[BScroll warn]: Can not resolve the wrapper DOM. Vue better-scroll[Vue warn]: Error in mounted hook: “TypeError: Cannot read property ‘children’ of undefined”问题分析:BScroll 未获得到 DOM解决办法:1.找到使用BScroll 的地方,项目中使用的如下:import BScroll from 'bsc原创 2021-02-18 15:54:41 · 4431 阅读 · 1 评论 -
关于vue中Cannot read property ‘key‘ of undefined 的解决
报错图:原因及解决办法:就是因为":starNum=" 的值应该是number型,为空时我传递一个String型的 ‘0’,应该为number型的 0导致循环中starNum 被使用,类似 v-for="(item,index) in starNum" :key= “index”key就报错了.key的报错,一般就是用到key了,或者就是v-for里的 :key 的问题原代码:<SubHeader headerText="技术" :starNum=原创 2021-01-13 13:46:39 · 9845 阅读 · 2 评论 -
Vant 的collapse折叠面板的使用,解决循环,迭代,点击全部展开,点击单个展开
Vant 的collapse折叠面板的使用,解决循环,迭代,点击全部展开,点击单个展开1.点击某个折叠,其他折叠也展开,v-for写在van-collapse 里 name不起作用。<van-collapse v-model="activeName" v-for="item in textList" :key="item.index" > <van-collapse-item name="">2.点击某个折叠,只展示单个折叠其他不受影响,v-for写在van-colla原创 2020-09-02 20:31:23 · 19556 阅读 · 2 评论 -
报错完美解决 Property or method “XXX“ is not defined on the instance but referenced during render. Ma...
报错完美解决 Property or method “XXX” is not defined on the instance but referenced during render. Ma…报错原因:是在template里面或者在方法里使用了,但是在data里没有定义。如果是template里面,注意如果是v-bind:value的形式,需要在data里面定义对应的value值。...原创 2020-08-28 19:40:13 · 7606 阅读 · 0 评论 -
This may cause things to work incorrectly. Make sure to use the same version for both.
Vue packages version mismatch:vue@2.6.11 (E:\Vue\h5-futures\h5-index\hongyeqh\node_modules\vue\dist\vue.runtime.common.js)vue-template-compiler@2.6.12 (E:\Vue\h5-futures\h5-index\hongyeqh\node_modules\vue-template-compiler\package.json)报错原因:vue 和 vu原创 2020-08-27 18:16:35 · 1395 阅读 · 0 评论 -
vue.js not detected,Vue.js devtool 插件安装后无法使用的解决办法
Vue.js devtool 插件安装后无法使用的解决办法安装了Vue.js devtool插件后,在chrome浏览器里面已经成功安装好Vue.js devtool插件,怎么点击后提示vue.js not detected解决办法:1.我们需要找到Vue.js devtool插件的安装目录,CRX文件的安装目录中找到插件的安装位置。http://www.cnplugins.com/tool/chajian-mulu-zai-nali.html安装的位置一般为:C:\Users\用户名\AppD原创 2020-08-14 15:44:06 · 1166 阅读 · 0 评论 -
vue init webpack 过程出错
使用命令”vue init webpack 项目名称”出错vue init webpack todolist你会收到如下反馈:Command vue init requires a global addon to be installed.Please run npm install -g @vue/cli-init and try again.大概意思是如果你要使用命令vue init还需在全局下安装cli-init执行如下命令:cnpm install -g @vue/cli-init原创 2020-08-14 14:39:40 · 346 阅读 · 0 评论 -
Javascript循环性能比较
Javascript循环性能比较javascript传统的数组遍历有for循环,while循环,以及for-in。比较的是以下几种循环遍历方法:循环方式备注正向for循环逆向for 循环减少一次控制条件比较,性能理论上比正向for循环稍好while 循环for-in循环理论上性能最差for-each循环duff device 循环利用并发,理论性能最好具体参考链接:点击跳转...原创 2020-08-10 17:54:28 · 267 阅读 · 0 评论 -
git下载不下来,git国内下载地址
git下载不下来,git国内下载地址国内下载地址国内下载地址链接: 点击下载.https://npm.taobao.org/mirrors/git-for-windows/原创 2020-08-04 11:23:14 · 1253 阅读 · 0 评论 -
在一个js文件的方法中如何调用另一个js文件中的方法
在一个js文件的方法中如何调用另一个js文件中的方法直接把两个js文件引入到html页面中,后面的JS文件是可以调用前面JS中的方法的,对你的例子就是先引入a.js再引入b.js,这样就可以在b()中调用 a()了。...原创 2020-07-28 19:46:50 · 4073 阅读 · 0 评论 -
PHP 出现 Notice: Undefined offset: 0解决办法
————————————————版权声明:本文为CSDN博主的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。php在使用数组时出现 Notice: Undefined offset: 0标题原写法是:直接在用数组 arra[0]时出现 Notice: Undefined offset: 0,经过查询是数组未定义就是用。 if ($patien...原创 2019-12-04 11:12:30 · 4258 阅读 · 0 评论