2012-06-11 133 views
-2

我試圖讓滑動圖片滑動圖片(見下面的代碼摘錄):試圖讓在javascript

if(this.slidesCount > 1){ 
    // navigate "in" or "out" 
    this.$slider 
     .find('nav > span.sl-prev') 
     .on('click.slitslider', function(event){ 
  1. Uncaught TypeError: Object [object Object] has no method 'on'
  2. Failed to load resource: the server responded with a status of 400 (Bad Request)

我我在JavaScript中獲得了兩個以上的錯誤。我如何解決上述問題?
預先感謝您。

+0

什麼是'click.slitslider''? –

回答

2

請嘗試使用jQuery 1.7及更高版本。這個「on」方法是jquery 1.7和更高版本中添加的一個新特性。 您是否使用1.6以下的低版本,並且不支持以下版本。

+0

嗨...我正在研究點網核模塊..它的加載版本1.6.4 ..我該如何改變這個? – dna

+0

在這裏下載jQuery 1.7.2:http://code.jquery.com/jquery-1.7.2.min.js –

+0

使用上面的鏈接評論derek。其他明智請參考這個jQuery網站http://docs.jquery.com/Downloading_jQuery供您參考 – MMK