注意:これらのTipsのためにjquery.d.tsファイルをインストールする必要があります
jquery.d.ts
次のようにjquery-foo.d.tsを作成してください:
jquery-foo.d.ts
interface JQuery { foo: any; }
そして、あなたは$('something').foo({whateverYouWant:'hello jquery plugin'})を使うことができます。
$('something').foo({whateverYouWant:'hello jquery plugin'})
最終更新 3 年前