随笔分类 -  typeScript

typeScript
摘要:默认情况,WebStorm是提供了创建TypeScript的模版文件,但是不提供自动编译ts文件为js和map文件。 网上找的一些教程,主要是教大家额外配置一个File Watcher来对ts文件进行自动编译。后来我发现新版本的WebStorm已经提供自动编译的功能了,只是需要设置一下。 WebSt 阅读全文
posted @ 2021-11-12 15:42 zhishaofei3 阅读(972) 评论(0) 推荐(0)
摘要:传递参数 const cats = { "Coding Cat": "https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif", "Compiling Cat": "https://media.giphy.com/media/mlvseq9yvZh 阅读全文
posted @ 2021-02-23 21:15 zhishaofei3 阅读(423) 评论(0) 推荐(0)
摘要:plugins: [ [ 'component', { libraryName: 'element-ui', } ]] 阅读全文
posted @ 2020-12-09 11:43 zhishaofei3 阅读(388) 评论(0) 推荐(0)
摘要:Accessors are only available when targeting ECMAscript 5 and higher.解决办法:File Watchers在tsc.cmd命令上加参数--target ES5如果代码里报错 可以在这里设置ES5规则 阅读全文
posted @ 2015-11-08 20:19 zhishaofei3 阅读(1870) 评论(0) 推荐(1)