摘要:1、定义一个数组,存放表格数据(注:表格要给定一个高度,添加数据超过这个高度会自动出现滚动条) ttable:[], 2、把数组中表格的每一行定义成一个对象,添加到数组中 newconditions:function(){ var newValue = {}; //添加新的行数 this.ttabl
阅读全文
摘要:var box = document.getElementById("box"); var btn = document.getElementById("btn"); btn.onclick = function(event){ event.stopPropagation(); if(box.sty
阅读全文
摘要:1、在data()里定义一个空数组: conditions:[], 2、给数组一个容器,并且遍历数组 <div v-for="item in conditions"><div>数组中的数据</div>...</div> 3、给按钮绑定单击事件 <el-button type="text" @clic
阅读全文
摘要:1、新建一个.vue页面,写一个Dialog组件、把弹出框上想要展示的内容放进去。 <template> <el-dialog title="新增标签" :visible.sync="centerDialogVisible" width="80%" center> <div> <div style=
阅读全文
摘要:报错一Can’t resolve ‘E:\……\node_modules\core-js\modules\es.array.iterator.js’ 原因:core-js版本问题,下载最新版本core-js即可。 解决过程:1、查看node_modules下没有core-js,于是安装npm i c
阅读全文