Unbind jQuery even handler

前端 未结 6 761
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 04:38

I try to answer this question a few minutes ago and prepared this example for myself :



        
6条回答
  •  再見小時候
    2020-12-19 04:55

    As far as I can see in jQuery API documentation, unbind() has been deprecated: https://api.jquery.com/unbind/

    As of jQuery 3.0, .unbind() has been deprecated. It was superseded by the .off() method since jQuery 1.7, so its use was already discouraged.

    And off() method should be used instead.

提交回复
热议问题