会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
甲辰哥来帮你算命
爱好:算命;欢迎投稿~~~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2023年4月23日
TypeError: Cannot read property 'upgrade' of undefined
摘要: 解决方案: 在你的.env.dev配置文件中配置VUE_APP_BASE_API并对target赋值
阅读全文
posted @ 2023-04-23 17:56 甲辰哥来帮你算命
阅读(256)
评论(0)
推荐(0)
2023年3月28日
Vue选日期滚动条自动定位到选定的日期位置
摘要: html 这里的关键点就是 :id="'scroll'+index" 以及 :scroll-into-view="intoIndex" <view class="week-day-item" v-for="(item,index) in weekList" :key="index" @click="
阅读全文
posted @ 2023-03-28 15:11 甲辰哥来帮你算命
阅读(193)
评论(0)
推荐(0)
2023年3月27日
Vue根据时间戳制作倒计时15分钟
摘要: 废话不多说直接上代码 <script> export default { data() { return { downTimeShow: true, timer: null, downTime: '', nowTime: '', orderList:[ {addTime:'2023.03.27 13
阅读全文
posted @ 2023-03-27 14:13 甲辰哥来帮你算命
阅读(219)
评论(0)
推荐(0)
2023年3月13日
防抖节流utils
摘要: /** * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数 * * @param {Function} func 要执行的回调函数 * @param {Number} wait 延时的时间 * @param {Boolean} immediate 是否立即执行 * @retur
阅读全文
posted @ 2023-03-13 22:55 甲辰哥来帮你算命
阅读(37)
评论(0)
推荐(0)
2022年10月8日
一些JS过滤方法
摘要: 一般过滤器我们都会卸载过滤filter文件内 本文这里就直接写正常methods格式的 //过滤空格 filterSpaces(data) { return data.replace(/\s+/g, '') }, //验证是否为纯数字 isNumber(val) { var regPos = /^\
阅读全文
posted @ 2022-10-08 10:28 甲辰哥来帮你算命
阅读(775)
评论(0)
推荐(0)
Vue全局公共服务类mixin
摘要: 首先,简单介绍下mixin: Mixin是面向对象程序设计语言中的类,提供了方法的实现。其他类可以访问mixin类的方法而不必成为其子类 Mixin类通常作为功能模块使用,在需要该功能时“混入”,有利于代码复用又避免了多继承的复杂 在Vue中,mixin(混入),提供了一种非常灵活的方式,来分发 V
阅读全文
posted @ 2022-10-08 10:23 甲辰哥来帮你算命
阅读(278)
评论(0)
推荐(0)
2022年6月16日
npm install报错node-sass@7.0.1 postinstall: `node scripts/build.js`
摘要: 在控制台执行 即可 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
阅读全文
posted @ 2022-06-16 13:48 甲辰哥来帮你算命
阅读(508)
评论(0)
推荐(0)
2022年6月8日
vue一直处在2.9.6版本卸载不了升级不了解决方案
摘要: 直接 win+R打开cmd窗口运行命令: 输入where vue,找到vue安装位置,把找到的文件删掉 再执行一次npm uninstall vue-cli -g, vue -V,已经没有版本号了 此时就可以安装其他版本了 npm install -g @vue/cli@3.12.1
阅读全文
posted @ 2022-06-08 19:32 甲辰哥来帮你算命
阅读(279)
评论(0)
推荐(0)
2022年5月31日
Error in nextTick: "TypeError: Right-hand side of 'instanceof' is not an object"
摘要: 发生这种情况,直接去查看 props 对象是否 类型正确 props 有 大概两种 写法吧, 一种就是对象形 ,一种是数组形 // 对象形props: { show: { type: Boolean, default : () => false }, screenWidth: { type: Str
阅读全文
posted @ 2022-05-31 17:16 甲辰哥来帮你算命
阅读(1381)
评论(0)
推荐(0)
2022年5月27日
echarts CDN免费加速地址
摘要: https://www.bootcdn.cn/echarts/
阅读全文
posted @ 2022-05-27 11:37 甲辰哥来帮你算命
阅读(999)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告