摘要:
//1 async 返回一个promise对象所以可以通过.then来调用 async function test1() { return "测试数据" }test1().then((e)=>{ console.log(e) // 测试数据});//2 async 里面如果遇到 return 会直接 阅读全文
摘要:
举个例子function Test() { this.name = "吕布"; this.age = "35"; this.skill_1 = function () { console.log(2) }; this.skill_2 = function () { console.log(3) }} 阅读全文