[英]error "Property 'datepicker' does not exist on type 'IAugmentedJQuery' With Typescript
我在Typesscript中使用angular JS。 但是出現錯誤“ 類型'IAugmentedJQuery'中不存在屬性'datepicker'。 ”。 請咨詢如何解決此錯誤?
angular.element('input#delegate-from-date').datepicker({
提前致謝 !!
您可以在項目中使用以下內容創建datepicker.d.ts
文件:
interface IAugmentedJQuery {
datepicker:any;
}
有關遷移的一些技巧:
https://basarat.gitbooks.io/typescript/content/docs/types/migrating.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.