jQuery('#foo'); // index.ts(1,1): error TS2304: Cannot find name 'jQuery'. 这时,我们需要使用declare 关键字来定义它的类型,帮助TypeScript 判断我们传入的参数类型 ...
確定! 回上一頁