摘要: 数组.join()方法 this.addForm.goods_name.join(',') 会返回一个新的字符串 重新接收一下 this.addForm.goods_name = this.addForm.goods_name.join(',') 阅读全文
posted @ 2020-11-09 22:08 张新钢 阅读(89) 评论(0) 推荐(0)
摘要: // 1.获取将要删除的数据 console.log(file.response.data.number) const fileFind = file.response.data.number // 2.从数组中找到一样的 findindex 就是找到的话会返回这个值所在的位置,x代表的是就是找到的 阅读全文
posted @ 2020-11-09 21:40 张新钢 阅读(5824) 评论(0) 推荐(0)
摘要: // 拼接字符串成为一个数组 const pathInfo = // 往数组里添加数据push this.addGoodsForm.pics.push(pathInfo) 阅读全文
posted @ 2020-11-09 21:21 张新钢 阅读(2659) 评论(0) 推荐(0)
摘要: 查看本地所有的分支 PS E:\Git\练习项目\vue_shop> git branch login master user 查看本地是否有别名 PS E:\Git\练习项目\vue_shop> git remote -v gitee git@gitee.com:xin-code/vue_shop 阅读全文
posted @ 2020-11-08 22:08 张新钢 阅读(126) 评论(0) 推荐(0)
摘要: 放入项目中 dsfont.css文件内容 @font-face { font-family: 'electronicFont'; src: url(../font/DS-DIGIT.ttf); font-weight: normal; font-style: normal; } 在main.js文件 阅读全文
posted @ 2020-11-05 17:52 张新钢 阅读(432) 评论(0) 推荐(0)
摘要: 布局 Flex布局 ⭐ 父级设置: display: flex;将对象作为弹性伸缩盒显示 flex-flow: column;方向设置为垂直方向(flex-flow 属性是 flex-direction 和 flex-wrap 属性的复合属性,直接使用flex-direction亦可) 父级需设置高 阅读全文
posted @ 2020-11-05 14:49 张新钢 阅读(61) 评论(0) 推荐(0)
摘要: 在main.js 中添加 Vue.filter('过滤器的名字',function(需要处理的原始数据){ const dt = new Data(需要处理的原始数据) const y = dt.getFullYear() const m = (dt.getMonth() + 1 + '').pad 阅读全文
posted @ 2020-10-30 13:37 张新钢 阅读(144) 评论(0) 推荐(0)
摘要: 级联选择器 下拉框占满全屏 此时可在全局样式文件global.css中添加高度配置: .el-cascader-panel{ height: 200px; } 阅读全文
posted @ 2020-10-29 14:19 张新钢 阅读(943) 评论(0) 推荐(0)
摘要: <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage4" :page-sizes="[100, 200, 300, 400]" : 阅读全文
posted @ 2020-10-28 17:23 张新钢 阅读(503) 评论(0) 推荐(0)
摘要: { "C_Cpp.updateChannel": "Insiders", "editor.minimap.enabled": true, "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection 阅读全文
posted @ 2020-10-28 13:31 张新钢 阅读(167) 评论(0) 推荐(0)