我有部分关于 TypeScript 或 CoffeScript 的代码,但我需要在 vanilla 上使用它,你能帮助我吗?
da.getMatchHistory(options).then((result) => {
console.log(result);
}, (errorResponseStatusText) => {
console.log(errorResponseStatusText);
});
最佳答案
我认为这是带有箭头的 javascript ...
da.getMatchHistory(options).then(function (result) {
console.log(result);
}, function (errorResponseStatusText) {
console.log(errorResponseStatusText);
});
关于javascript - 从 Coffee(或 Type)翻译为 vanilla js 语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44214981/