Uncaught TypeError:Object[object object] has no method 'on'

前端 未结 3 738
生来不讨喜
生来不讨喜 2021-01-22 17:09

I m going to try this: http://jquerytools.org/demos/scrollable/index.html
But without any event trigger, I m getting below error

3条回答
  •  耶瑟儿~
    2021-01-22 17:56

    You are using jQuery 1.6.1 - on() didn't exist back then (not until 1.7).

    Your options:

    • Either you use bind() instead.

    • Or you update to the latest jQuery.

    In regard to the second option, replace

    
    

    with

    
    

提交回复
热议问题