conditional javascript code not executing

后端 未结 4 415
没有蜡笔的小新
没有蜡笔的小新 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:31

    First off, your event variable should be the parameter e rather than event.

    Second, when testing for equality, you need two equals signs: ==. One equals sign is the assignment operator.

提交回复
热议问题