declare var jQuery: (selector: string) => any; jQuery('#foo');. 上例中, declare var 并没有真的定义一个变量,只是定义了全局变量 jQuery 的类型 ...
確定! 回上一頁