上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 写在前面 ES2020(即 ES11)上周(2020 年 6 月)已经正式发布,在此之前进入 Stage 4 的 10 项提案均已纳入规范,成为 JavaScript 语言的新特性 一.特性一览 ES Module 迎来了一些增强: import():一种可以用动态模块标识异步引入模块的的语法 im 阅读全文
posted @ 2020-07-03 10:16 我自是年少 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 话不多说 直接上代码、 <el-upload :action="actionUrl" class="avatar-uploader" :multiple="false" name="files" ref="upload" :file-list="fileList" :on-preview="hand 阅读全文
posted @ 2020-06-23 15:14 我自是年少 阅读(15566) 评论(0) 推荐(1) 编辑
摘要: 在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复,虽然对项目无影响,但是看到有红的还是不舒服。于是查了一下发现可以这样解决在你引入VueRouter的时候再加上一句话: const originalP 阅读全文
posted @ 2020-06-23 11:11 我自是年少 阅读(1954) 评论(1) 推荐(0) 编辑
摘要: element的官方说明 通过给table传入span-method方法可以实现合并行或列,方法的参数是一个对象,里面包含当前行row、当前列column、当前行号rowIndex、当前列号columnIndex四个属性。该函数可以返回一个包含两个元素的数组,第一个元素代表rowspan,第二个元素 阅读全文
posted @ 2020-06-15 16:59 我自是年少 阅读(3778) 评论(1) 推荐(0) 编辑
摘要: <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> <div clas 阅读全文
posted @ 2020-05-18 10:30 我自是年少 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: 记录一下最近项目常用的api - - 路由跳转两种方式 let url = "/record?cms_key=" + this.cms_key+"&act_key="+this.act_key this.props.history.push(url) // window.location.href 阅读全文
posted @ 2020-04-26 12:04 我自是年少 阅读(229) 评论(0) 推荐(0) 编辑
摘要: html部分正常写 调用组件时 //写在body里面 <withdrawal-hongbao v-if="flagHongbao" :hongbao="hongbao"></withdrawal-hongbao> //template 要写在body外面 <template id="withdraw 阅读全文
posted @ 2020-04-24 12:29 我自是年少 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1.js实现promise 1.promise和async/await的区别 函数前面多了一个async关键字。await关键字只能用在async定义的函数内。async函数会引式返回一个promise,改promise的resolve值就是函数return的值。 简洁:使用async和await明 阅读全文
posted @ 2019-12-20 00:14 我自是年少 阅读(382) 评论(0) 推荐(0) 编辑
摘要: axios.all([ axios.get('https://api.github.com/xxx/1'), axios.get('https://api.github.com/xxx/2') ]) .then(axios.spread(function (userResp, reposResp) 阅读全文
posted @ 2019-12-10 17:04 我自是年少 阅读(1966) 评论(0) 推荐(0) 编辑
摘要: 懒加载模式 大项目中,为了提高初始化页面的效率,路由一般使用懒加载模式,一共三种实现方式。(1)第一种写法: component: (resolve) => require(['@/components/One'], resolve) (2)第二种写法: component: () => impor 阅读全文
posted @ 2019-12-10 16:55 我自是年少 阅读(562) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页