在typescript中,如果函式表示式作為引數傳遞,則其引數的型別將完全推斷出來: var foo = (fn: (a: string) => void) => {}; foo(a => { // a is ...
確定! 回上一頁