- 博客(5)
- 收藏
- 关注
原创 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
原创 异步解决方案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
原创 异步解决方案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
原创 异步解决方案1.generator函数 2.Promise,3.async await(1)
异步解决方案1.generator函数 2.Promise,3.async await
2022-02-12 14:06:25
210
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人