如何摆脱这种错误?属性“滑块”不存在类型'JQuery'与打字稿
jQuery(this.el.nativeElement.children[0]).slider('option', optionName, this.value);
错误:
file: 'file:/slider_component/slider.component.ts'
severity: 'Error'
message: 'Property 'slider' does not exist on type 'JQuery'.'
at: '85,55'
source: 'ts'
滑块不是JqueryUI的一部分吗?也许检查https://jqueryui.com/slider/你可能没有包含JqueryUI或错误的顺序。 如果您创建一个片段或向我们显示您的代码,这将有所帮助 –
如何使用打字稿进行安装? – user2280016
看看这里http://stackoverflow.com/questions/13980549/best-way-to-make-jquery-ui-with-typescript –