会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
塞巴斯酱
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年5月10日
es6 两个数组取相同项
摘要: let arr = [{ id: 1, name: 'zs' }, { id: 2, name: 'ls' }, { id: 3, name: 'ww' }, { id: 4, name: 'xm' }, { id: 5, name: 'xh' },] let sum = [3, 4, 5] let
阅读全文
posted @ 2020-05-10 18:26 塞巴斯酱
阅读(9452)
评论(0)
推荐(0)
2020年3月30日
Failed at the node-sass@4.13.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
摘要: 看的第一遍,找不到sass,查看node-sass文件,里面没有文件 解决办法 下载sass之前,要先修改源 先把node-modules删除掉 执行以下命令 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sa
阅读全文
posted @ 2020-03-30 15:21 塞巴斯酱
阅读(1883)
评论(0)
推荐(0)
2020年1月20日
页面跳转
摘要: 一,在标签上注册点击事件 <div onclick="window.open('index.heml')">新窗口打开</div> <div onclick="window.open('index.html','_self')">在当前页面打开</div> 二,a标签跳转 <a href="inde
阅读全文
posted @ 2020-01-20 15:20 塞巴斯酱
阅读(179)
评论(0)
推荐(0)
多行文字溢出显示省略号
摘要: 多行文本溢出隐藏(有详细的解释):https://www.html.cn/archives/5206/ 单行文字溢出css: overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 多行文字溢出省略号显示css: overflo
阅读全文
posted @ 2020-01-20 14:23 塞巴斯酱
阅读(131)
评论(0)
推荐(0)
2020年1月3日
iview-select选择器组件的使用&设置默认选中的值
摘要: 一,Select选择器使用 html <Select v-model="model15" prefix="ios-home" style="width:200px"> <Option v-for="item in cityList" :value="item.id" :key="item.id">{
阅读全文
posted @ 2020-01-03 15:28 塞巴斯酱
阅读(8528)
评论(0)
推荐(0)
2019年12月27日
iview中表单验证(遇到的问题)
摘要: 一, 1,日期时间选择器,验证时type应为'data'类型; { required: true, type: 'date', message: '请选择日期', trigger: 'blur' } 2,(将后台获取到的字符串格式的数据放入new Data()中,问题就解决了)日期时间选择器,是将时
阅读全文
posted @ 2019-12-27 17:39 塞巴斯酱
阅读(2244)
评论(0)
推荐(0)
2019年12月26日
iview DatePicker type 为dateTime 时无法做表单验证!
摘要: 在做修改数据的对话框中表单校验时,日期时间验证不了小图标一直在打转,因为我后台获取到的数据(是字符串的格式),应该将获取到的字符串格式的数据放到new Data()中(转为标准时间格式),就可以通过验证了,也可以正常提交表单了。 <FormItem prop="beginDate"> <DatePi
阅读全文
posted @ 2019-12-26 20:27 塞巴斯酱
阅读(1551)
评论(0)
推荐(0)
报错:[Vue warn]: Error in callback for watcher "value": "Value should be trueValue or falseValue."
摘要: 用的iview组件库+vue,报了个这个错[Vue warn]: Error in callback for watcher "value": "Value should be trueValue or falseValue." 后台给我的值是0,1 我这边按钮的值是true, false,那个错误
阅读全文
posted @ 2019-12-26 19:46 塞巴斯酱
阅读(9343)
评论(0)
推荐(0)
2019年12月25日
Jquery 数字滚动兼容小数
摘要: html <div class="number"></div> js $('.number').text("999"); // 设置页面中要显示的数字 $('.number').leoTextAnimate({delay:200,autorun:true,fixed:[',',':','.'],st
阅读全文
posted @ 2019-12-25 15:34 塞巴斯酱
阅读(606)
评论(0)
推荐(0)
2019年11月25日
validate表单验证-单独验证
摘要: 1,用validate来进行表单验证 https://www.cnblogs.com/g-smile/p/9159549.html 2,通过正则进行验证 https://blog.csdn.net/pingxiaoje/article/details/84595447
阅读全文
posted @ 2019-11-25 16:30 塞巴斯酱
阅读(628)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告