Vue+element ui 笔记
1)可以直接拿过来就用的样式
https://www.cnblogs.com/xiao987334176/p/14188413.html
2)对Table里面的每一项全部设定为选中
mounted() { //设置全部为选中 for (var i = 0; i < this.tableData.length; i++) { this.$refs.multipleTable.toggleRowSelection(this.tableData[i], true);//默认选中 } },
3)获取queryString
抓取xxxx?ezno=nnnnnn,中的ezno
let qs = Qs; Vue.prototype.getSearch = function () { return window.location.search; }; Vue.prototype.$qs = qs; ......... mounted() { let query = this.$qs.parse(this.getSearch(),{ ignoreQueryPrefix: true }); if (query.ezno) { } }