conditional javascript code not executing

后端 未结 4 418
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 14:47

Does anyone know why this code might not work? touchmove and touchend do not execute only touchstart because that\'s a seperate event and function :)

$(\'input\'         


        
4条回答
  •  旧巷少年郎
    2021-01-26 15:19

    The event names in the first argument to ".live()" need to be separated by spaces, not commas.

    $('input').live("touchmove touchend", function (e) {
    

提交回复
热议问题