如何擺脫這種錯誤?屬性「滑塊」不存在類型'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 –