![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端学习
文章平均质量分 68
橘酸
Web前端小白记事本
展开
-
es6知识点学习总结(2)
es6知识点总结原创 2022-02-12 14:37:24 · 477 阅读 · 0 评论 -
es6知识点学习总结(1)
1.var、let、const ES6 推荐在函数中使用 let 定义变量const 用来声明一个常量 (值类似值不能改变,引用类型地址不能改变) let 和 const 只在最近的一个块中(花括号中)有效 //1.let不能重复申明 var n = 10; var n = 100; console.log(n) //100 let a=10 let a=100 console.log(a) // SyntaxError 'a' has already been declared //2.原创 2022-02-12 14:30:31 · 113 阅读 · 0 评论 -
异步解决方案1.generator函数 2.Promise,3.async await(3)
3.async await 3.async await例子 function a() { return new Promise((resolved, reject) => { $.ajax({ type: "get", url: "./code.json", dataType: "json", ...原创 2022-02-12 14:18:27 · 115 阅读 · 0 评论 -
异步解决方案1.generator函数 2.Promise,3.async await(2)
2.Promise 2.Promise例子 function b(){ $.ajax({ type: "get", url: "./data.json", dataType: "json", success: function (res) { console.log(res); ...原创 2022-02-12 14:14:29 · 164 阅读 · 0 评论 -
异步解决方案1.generator函数 2.Promise,3.async await(1)
异步解决方案1.generator函数 2.Promise,3.async await原创 2022-02-12 14:06:25 · 210 阅读 · 0 评论