2014-10-20 128 views
2

我在嘗試使用libLink feature with NoUISlider當出現以下錯誤:noUiSlider鏈接錯誤

遺漏的類型錯誤:未定義的是不是一個函數(jquery.liblink.js:260

的代碼行:

// If the Link requires creation of a new element, 
    // Pass the element and request confirmation to get the changehandler. 
    // Set the method to be called when a Link changes. 
    linkInstance.changeHandlerMethod = this.LinkConfirm(flag, linkInstance.el); 

在我的HTML我有以下代碼:

<div id="slider" ></div> 

我的javascript:

$("#slider").noUiSlider({ 
    start: 20, 
    range: { 
     'min': 10, 
     'max': 50 
    } 
}); 

$("#slider").Link('lower').to('-inline-'); 

我有兩個NoUISlider和liblink庫包含在頁面中。

我不明白價值標籤。我該如何解決這個問題?謝謝!

+1

'

' - without'#' – panther 2014-10-20 07:16:53

+0

@panther它沒有#,我手動寫入,我的錯誤。 – 2014-10-20 07:24:39

+0

你在document.ready上運行這段代碼嗎? – Lg102 2014-10-21 14:46:04

回答

5

也發生在我身上。

獲取最新的js文件,它工作正常。

+1

這應該被標記爲正確的答案。 – user2990084 2015-01-16 09:41:49