摘要:
// Promise介绍 // 在 JS 中,实现异步编程,一般就是通过 回调函数 的方式来实现的,回调函数就会形成下面的函的回调地狱的问题,代码看上去就会比较恶心。 $.ajax({ success: function () { $.ajax({ success: function () { $. 阅读全文
posted @ 2018-09-02 16:36
cecelingmeng
阅读(69)
评论(0)
推荐(0)
摘要:
// ES6中的箭头函数 语法: // 1 箭头函数中没有this, 箭头函数中的this 是外部环境中的this // 2 箭头函数不能使用arguments // arguments 用来获取实参列表, 是一个伪数组 // 使用 rest参数, 来替代 arguments 的功能 const f 阅读全文
posted @ 2018-09-02 15:22
cecelingmeng
阅读(384)
评论(0)
推荐(0)