我在 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);
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句