04 2019 档案
摘要:表格代码:黄色部分为序号列关键代码上图: <el-table :data="tableData" border height="480" style="width: 100%"> <el-table-column label="序号" width="70px"> <template slot-sco
阅读全文
摘要:关键代码 主要解决vue双大括号{{}}在数据渲染和加载过程中的闪动问题,而影响客服体验。 html代码: css:
阅读全文
摘要:一、常规的JS页面跳转代码 1、在原来的窗体中直接跳转用<script type="text/javascript"> window.location.href="你所要跳转的页面"; </script>2、在新窗体中打开页面用:<script type="text/javascript"> win
阅读全文
摘要:1,element表格切入按钮 关键代码: 2,element表格切入复选框 关键代码:
阅读全文
摘要:1,css超出一行用点表示 white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 2,css超出二行用点表示 overflow:hidden; text-overflow:ellipsis; display:-webkit-box;
阅读全文
摘要:父页面代码: html: <div id="app"> //省略业务代码x行..... <iframe src="/sonpage" > //省略业务代码x行..... </div> vuejs: var vm = new Vue({ el: '#app', data: { id:'123', },
阅读全文
摘要:使用JSON.parse()函数 this.dataList = JSON.parse(dataList); 使用eval()函数 var jsonStr = '{"name":"zhangsan","age":23,"email":"chentging@aliyun.com"}'; var jso
阅读全文
摘要:1,element 表格嵌入CheckBox 效果图如下: 2,element结合checkBox实现单选效果如下: html代码: js代码:
阅读全文