>》>》>》>》
摘要: scope.$index <el-table-column label="序号" align="center" width="80" > <template slot-scope="scope"> <div :class="listBgColor[scope.$index+1+myIndex]"> 阅读全文
posted @ 2020-07-13 15:39 大、锤 阅读(2931) 评论(0) 推荐(0) 编辑
摘要: 原理 浏览器端: 动态生成<script>来请求后台接口(src就是接口的url) 定义好用于接收响应数据的函数(fun), 并将函数名通过请求参数提交给后台(如: callback=fun) 服务器端: 接收到请求处理产生结果数据后, 返回一个函数调用的js代码, 并将结果数据作为实参传入函数调用 阅读全文
posted @ 2020-07-13 09:38 大、锤 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 作用: 简化promise对象的使用: 不用再使用then()来指定成功/失败的回调函数 以同步编码(没有回调函数了)方式实现异步流程 哪里写await? 在返回promise的表达式左侧写await: 不想要promise, 想要promise异步执行的成功的value数据 哪里写async? a 阅读全文
posted @ 2020-07-13 09:22 大、锤 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 一. 创建远程仓库 二. 创建本地仓库 a. 配置.gitignore b. git init c. git add . d. git commit -m "备注" 三. 将本地仓库推送到远程仓库 git remote add origin url git push origin master 四. 阅读全文
posted @ 2020-07-13 09:03 大、锤 阅读(129) 评论(0) 推荐(0) 编辑