在 Typescript 中订阅 jQuery document.ready() 的一般描述方法似乎如下
class Foo {
constructor() {
jQuery(document).ready(() => {
...
});
}
}
但是在 Typescript 3.0 中我遇到了一个错误..
Supplied parameters do not match any signature of call type...
should have type assignment to string...
but has type 'Document'
这是一个错误还是正确的签名是什么。