会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SunPangYu
博客园
首页
新随笔
联系
订阅
管理
2020年6月5日
electron打包
摘要: 打包时复制出一份代码,代码的路径中不能有中文名的文件夹!!! 在复制出的文件夹中 安装yarn 命令:npm install -g yarn 等待执行完成之后,我们需要配置一下package.json文件,在文件中添加 "scripts": { "start": "chcp & electron .
阅读全文
posted @ 2020-06-05 15:28 SunPangYu
阅读(153)
评论(0)
推荐(0)
2019年9月17日
vue中v-for循环出来的元素绑定的不同事件
摘要: data中的数据: data:{ days:[ {title:'昨天',methods:'dayBefore'}, {title:'今天',methods:'today'}, {title:'近7天',methods:firstSevenDays}, {title:'近30天',methods:'f
阅读全文
posted @ 2019-09-17 14:14 SunPangYu
阅读(4916)
评论(0)
推荐(0)
2019年9月16日
vue中添加多个点击事件方法
摘要: @click="getIndex();getIndex2()" 不同方法中间需要用 ";" 号分隔
阅读全文
posted @ 2019-09-16 13:03 SunPangYu
阅读(7379)
评论(0)
推荐(1)
2019年9月3日
vue中根据后台返回的参数更改class
摘要: vue中动态更改class的方法是在元素上绑定 :class标签 <div :class="coupon.couponProductType 'ALL' ? 'couponAll' : 'couponPortion' "></div> 重点是 判断参数(本例子中的ALL)要用 ‘’ 号括起来,包括后
阅读全文
posted @ 2019-09-03 09:40 SunPangYu
阅读(1616)
评论(0)
推荐(0)
公告