咏竹莉
where there is a will,there is a way
上一页 1 ··· 9 10 11 12 13
摘要: 使用上的不同 export default xxx import xxx from './' export xxx import {xxx} from './' 阅读全文
posted @ 2021-03-09 10:52 咏竹莉 阅读(423) 评论(0) 推荐(0) 编辑
摘要: · for( let i = 0; i < arr.length; ++i ) · for ( let i in arr ) · for (let item of arr) · arr.forEach((item,i) => {/*...*/}) 语法 for...in 和for 访问的数组下标,而 阅读全文
posted @ 2021-03-08 17:02 咏竹莉 阅读(423) 评论(0) 推荐(0) 编辑
摘要: ES6 拓展运算符 1.数组(扩展运算符) 解构赋值扩展运算符(spread)就是我们知道的三个点(...),它就好像rest参数的逆运算,将一个数组转为用逗号分隔的参数序列。 console.log(...[1,2,3]); //1 2 3 console.log(1,...[2,3,4],5) 阅读全文
posted @ 2021-03-05 11:02 咏竹莉 阅读(93) 评论(0) 推荐(0) 编辑
摘要: hinge 链条,合叶 nurture 培育滋养 narrative 叙事 voerlap 重叠,交集 阅读全文
posted @ 2021-03-05 10:51 咏竹莉 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Promise ES6提供了Promise对象Promise对象代表了未来将要发生的事情,用来传递异步操作的信息 promise对象有以下两个特点: 1. 对象的状态不受外界影响 promise对象的状态改变,只有两种可能,从pending到resolved和从pending到rejected(失败 阅读全文
posted @ 2021-03-04 14:26 咏竹莉 阅读(61) 评论(0) 推荐(0) 编辑
摘要: ES6 Set 了解Set ES6 提供了set数据结构,类似于数组,但是没有重复值 1. set 本身是一个构造函数,用于生成Set数据结构 const s = new Set(); [1,2,5,3,3].forEach(x => s.add(x)); for (let item of s) { 阅读全文
posted @ 2021-03-04 14:11 咏竹莉 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1. let 命令 基本用法 ES6 新增了let命令,用来声明变量,它的用法类似var,但是所声明的变量,只在let命令所在的代码块内有效 不存在变量提升 var 命令会发生“变量提升”现象,即变量可以在声明之前使用,值为undefined。这种现象多少是有些奇怪的,按照一般的逻辑,变量应该在申明 阅读全文
posted @ 2021-03-04 10:44 咏竹莉 阅读(129) 评论(0) 推荐(0) 编辑
摘要: <el-upload class="upload-demo" :action="uploadLi" :before-upload="beforeUpload" :on-success="handleSuccess" :headers="{'X-User-Token': authorization}" 阅读全文
posted @ 2021-03-03 14:12 咏竹莉 阅读(2323) 评论(0) 推荐(0) 编辑
摘要: 一. Webstorage本地存储 1. webstorage包括localstorage 和 sessionstorage 2. localStorage生命周期是永久,这意味着除非用户显示在浏览器提供的UI上清除localStorage信息,否则这些信息将永远存在。存放数据大小为一般为5MB,而 阅读全文
posted @ 2021-03-03 14:00 咏竹莉 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13