typescript引用jquery出错!

错误提示:Uncaught ReferenceError: exports is not defined

编译前typescript代码

https://img.mukewang.com/5c4d4b7400019d3b04580295.jpg

编译后javascript代码

https://img.mukewang.com/5c4d4b800001da8204590315.jpg

慕尼黑8549860
浏览 424回答 1
1回答

慕姐8265434

找到问题了 我引用方式地址不对 /// <reference path="node_modules/@types/jquery/index.d.ts"/>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript