上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 问题:在表格中使用type='selection'实现多选,需要禁用某一行。 解决办法: HTML: 1 <el-table-column type="selection" :selectable='checkboxSelect' width="55"></el-table-column> JS: 阅读全文
posted @ 2020-10-13 13:37 最初的样子 阅读(6204) 评论(4) 推荐(0) 编辑
摘要: <el-form :model="form" :rules="rules" ref="form" label-width="100px"> <el-form-item label="活动名称" prop="name"> <el-input v-model="form.name"></el-input 阅读全文
posted @ 2020-09-10 18:22 最初的样子 阅读(371) 评论(0) 推荐(0) 编辑
摘要: function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate 阅读全文
posted @ 2020-09-09 19:48 最初的样子 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: position: sticky; top: 0px; left: 0; z-index: 9; 注意事项:(1)距离顶部的吸顶距离 top:0 时才会生效; (2)吸顶元素的父元素必须是page元素; (3)父元素page不能设置height:100%;否则滑动过程中消失 阅读全文
posted @ 2020-07-23 20:08 最初的样子 阅读(3114) 评论(0) 推荐(0) 编辑
摘要: (1)npm install less 之后 (2)npm install wepy-compiler-less 解决 阅读全文
posted @ 2020-07-20 18:37 最初的样子 阅读(368) 评论(0) 推荐(0) 编辑
摘要: wepy创建项目(wepy init standard recruitment-mini)时报错: 解决办法: (1)打开目录:C:/Windows/System32/drivers/etc/ (2)找到hosts文件,使用管理员模式打开记事本(注意必须使用管理员身份打开) (3)将hosts文件拖 阅读全文
posted @ 2020-07-15 11:51 最初的样子 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: 项目创建 (1)npm install -g wepy-cli 全局安装wepy 脚手架 (2)wepy init standard xxx 创建项目 (3)cd xxx 进入项目目录 (4)npm install 安装项目依赖 (5)wepy build —watch 实时监控 项目运行 (1)打 阅读全文
posted @ 2020-07-15 11:42 最初的样子 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 需要注意两点: 第一:设置请求头 {headers: {'Content-Type': 'application/x-www-form-urlencoded'}} 第二:所传参数采用字符串拼接,而不是键值对 阅读全文
posted @ 2020-07-09 17:44 最初的样子 阅读(10885) 评论(0) 推荐(0) 编辑
摘要: 1、LocalStorage与SessionStorage的主要区别: LocalStorage除非主动删除(例如清除缓存或者removeItem,clear等操作),否则会永久存储在浏览器中。 SessionStorage只在当前所在窗口关闭前有效,窗口关闭后其存储数据也就会被自动清除。 2、上面 阅读全文
posted @ 2020-06-17 19:12 最初的样子 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 问题: 具体场景是:列表页分页(当前选中第5页),点击跳转详情页,返回列表页时,分页状态仍然停留在第5页。 解决办法: 1.在app.vue中添加keepAlive 1 <keep-alive> 2 <router-view v-if="$route.meta.keepAlive" :key="$r 阅读全文
posted @ 2020-06-10 19:12 最初的样子 阅读(2652) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页