[英]error "Property 'datepicker' does not exist on type 'IAugmentedJQuery' With Typescript
I am using angular JS with Typesscript . 我在Typesscript中使用angular JS。 But getting error " Property 'datepicker' does not exist on type 'IAugmentedJQuery'. " .
但是出现错误“ 类型'IAugmentedJQuery'中不存在属性'datepicker'。 ”。 Please advice how to resolve this error ?
请咨询如何解决此错误?
angular.element('input#delegate-from-date').datepicker({
thanks in advance !! 提前致谢 !!
You can create a datepicker.d.ts
file in your project with the following contents: 您可以在项目中使用以下内容创建
datepicker.d.ts
文件:
interface IAugmentedJQuery {
datepicker:any;
}
Some tips on migrating : 有关迁移的一些技巧:
https://basarat.gitbooks.io/typescript/content/docs/types/migrating.html https://basarat.gitbooks.io/typescript/content/docs/types/migrating.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.