11 2021 档案
摘要:子组件: <template> <div> <!-- S 表格 A --> <el-table stripe :data="tableData" :header-cell-style="{background:'#eef1f6',color:'#606266'}" @selection-change
阅读全文
摘要:<script> export default { data() { return { listQuery: { pageNo: 1, pageSize: 10, }, //分页 list: [], //列表 totalPage: 1 //当前页 }; }, onLoad() { this._ord
阅读全文
摘要:利用filter和includes方法 const arr = [ { label: '测试1', value: '测试1value' }, { label: '测试2', value: '测试2value' }, { label: '测试3', value: '测试3value' } ] // !
阅读全文
摘要:解决方案:删除.git的提交规则文件(.git/hooks/pre-commit) 具体步骤: 进入项目的.git文件夹(文件夹默认隐藏,查看 - 隐藏的项目)再进入hooks文件夹删除pre-commit文件重新提交git。
阅读全文
摘要:Before: switch (path) { case "/options/store": return "store"; case "/options/tiktok": return "tiktok"; case "/options/kuaishou": return "kuaishou"; c
阅读全文
摘要:通过返回函数,判断参数内容。 <view class="item" :style="{'background':cardBg(index)}" </view> computed: { cardBg() { return function(index) { switch (index) { case
阅读全文

浙公网安备 33010602011771号