class Parent {
constructor() {
super();
this.id = 1;
}
getId: function () {
return this.id;
}
}
// old feature
function test () {
let result;
async(id, function (id) {
result = id;
return result;
})
console.log(result)
}
// ES6 feature
function * test () {
let asyncResult = yield asyncFunc();
return asyncResult
}
ReactJs
专注于业务
动态编译
实时更新
整体架构
...
还原犯罪现场!