新版本clean-webpack-plugin需要這樣導入const { CleanWebpackPlugin }=require('clean-webpack-plugin')
2020-07-30
感謝老舅的分享,想要源代碼的同學可以去我的github自取, 地址:https://github.com/liujin798006810/minProject
2020-07-24
講師回答 / 西門老舅
?if?(document.exitFullscreen)?{ ????????????????document.exitFullscreen(); ????????????}?else?if?(document.webkitCancelFullScreen)?{ ????????????????document.webkitCancelFullScreen(); ????????...
2020-07-22
講師回答 / 西門老舅
ts用的比較多的是tslint插件,其他插件可以在官網找到,下面是地址:https://code.visualstudio.com/Docs/languages/typescript。主要看是開發(fā)angular還是react,可能會用到不同的插件。
2020-07-20
已采納回答 / 西門老舅
其實引入的JS文件不是說在TS文件中不能用,用是沒問題的。而是TS不認識這個JS中的定義,如jquery中的$,編輯器就會報錯,所以才需要對應的d.ts文件。說白了TS還不那么智能,需要這種聲明文件給出明確的定義方式。
2020-07-17
TS2339: Property 'insert' does not exist on type '{}'.
TS2339: Property 'singleton' does not exist on type '{}'.
TS2339: Property 'i' does not exist on type 'any[]'.
運行后,會有這個報錯
TS2339: Property 'singleton' does not exist on type '{}'.
TS2339: Property 'i' does not exist on type 'any[]'.
運行后,會有這個報錯
2020-07-17