随笔分类 -  Es5/Es6-Esn语法

ES5-ES N 语法
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ES6提供的 Set 【WeakSet】 和 Map 【WeakMap】 数据结构</title> </head> <body> <script type="text/javasc 阅读全文 »
posted @ 2021-03-10 10:10 鱼樱前端 阅读(117) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ES6-ES11新特性</title> </head> <body> <script type="text/javascript"> // promise、新增数据结构【基础数据类 阅读全文 »
posted @ 2021-03-05 18:39 鱼樱前端 阅读(572) 评论(0) 推荐(0) 编辑
摘要:promise反复学习总结就会深刻 提高; <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>再谈promise</title> </head> <body> <script type="text/javascript"> /* 阅读全文 »
posted @ 2021-02-26 00:53 鱼樱前端 阅读(122) 评论(1) 推荐(1) 编辑
摘要:// Object.defineProperty的第一个缺陷,无法监听数组变化 如这种数组改变方式 list[0] = xx; 对象的话是 var obj = {a: 1} obj.b = 2; Vue.set() / this.$set() /* 以下八种方法Vue是可以检测到数组变化的进行了数组 阅读全文 »
posted @ 2020-09-08 22:30 鱼樱前端 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div>es6</div> <script type="text/javascript"> // what是Promise:Pro 阅读全文 »
posted @ 2020-09-08 19:38 鱼樱前端 阅读(1352) 评论(0) 推荐(1) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div>es6</div> <script type="text/javascript"> // async函数就是将 Gener 阅读全文 »
posted @ 2020-09-08 11:26 鱼樱前端 阅读(489) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script type="text/javascript"> const target = {}; const obj1 = { 阅读全文 »
posted @ 2020-05-29 11:21 鱼樱前端 阅读(510) 评论(0) 推荐(0) 编辑
摘要:1、Es6提供的方法 2.下标查询(通常简单做法) 3.用对象属性去重 4.先排序再去重 5.for in + array.includes(ES6判断) 阅读全文 »
posted @ 2019-01-10 11:34 鱼樱前端 阅读(4071) 评论(0) 推荐(0) 编辑
摘要:今天闲着无事,梳理下ES6常见的语法知识点;除此之外的知识点自行细化和梳理! 阅读全文 »
posted @ 2018-08-29 17:46 鱼樱前端 阅读(1256) 评论(0) 推荐(1) 编辑
摘要:1.let, const 都是块级作用域,其有效范围仅在代码块中。 //es5 if(a==1){ var b = 'xxx'; } console.log(b);//xxx //es6 if(a==1){ let b = 'xxx'; } console.log(b);//undefined ---------------------------------------- const... 阅读全文 »
posted @ 2018-04-17 09:58 鱼樱前端 阅读(4170) 评论(0) 推荐(1) 编辑
摘要:作用域链:根据在内部函数可以访问外部函数变量的这种机制(个人理解) 阅读全文 »
posted @ 2018-04-16 11:45 鱼樱前端 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 »
posted @ 2018-04-16 10:18 鱼樱前端 阅读(158) 评论(0) 推荐(0) 编辑
摘要:1.call()的使用 2.apply 和 call 的区别 3.找出数组的最大数(传统) 4.用 apply 找出数组的最大值和最小值 5.bind 的使用 阅读全文 »
posted @ 2018-04-16 09:45 鱼樱前端 阅读(316) 评论(0) 推荐(0) 编辑
摘要:new Promise(function(resolve,reject){ resolve(); //数据处理完成 reject(); //数据处理出错 }).then(function A(){ //成功下一步 },function B(){ //出错做对应处理 }); Promise 三个状态;(每一个then都会返回新的一个Promise实例) pending //待定... 阅读全文 »
posted @ 2018-04-03 18:29 鱼樱前端 阅读(1054) 评论(0) 推荐(0) 编辑
摘要:数组的遍历方法 1...for(var i=0;i{ console.log(this,val,index,arr) //第三个参数就是原数组可要可不要; },bind(123)) //this指向会变箭头函数; ------------------------------------------------------------ 3...arr.map((val,index,arr)=>... 阅读全文 »
posted @ 2018-04-03 18:26 鱼樱前端 阅读(632) 评论(0) 推荐(0) 编辑

 
往后余生 - 王贰浪
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.
  1. 1 往后余生 王贰浪
  2. 2 拂雪 不才
  3. 3 我的一个道姑朋友 洛尘鞅
  4. 4 大田后生仔 王雨萌
点击右上角即可分享
微信分享提示