• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 11 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0018 秒)

11. TS项目中怎么使用promise [ 54%]

...都支持promise的 Laya不能是使用,是因为没有声明,在libs件夹下面建立,extend.d.ts,加入下面的代码: interface Promise<T> {     then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onreje...

来源: Laya_社区 发布时间: 20180604