摘要: //1 async 返回一个promise对象所以可以通过.then来调用 async function test1() { return "测试数据" }test1().then((e)=>{ console.log(e) // 测试数据});//2 async 里面如果遇到 return 会直接 阅读全文
posted @ 2019-05-09 14:43 zou1234 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 举个例子function Test() { this.name = "吕布"; this.age = "35"; this.skill_1 = function () { console.log(2) }; this.skill_2 = function () { console.log(3) }} 阅读全文
posted @ 2019-05-09 12:05 zou1234 阅读(305) 评论(0) 推荐(0) 编辑