收藏
回答

typescript和promise一起使用时,promise报错?

小程序采用了typescript模板,并打算使用promise,但是报错:'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.ts(2585)

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签