Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

jQuery 事件 - bind() 方法的语法如下:

$(selector).bind(event,data,function)

其中event可以是"input",意思是实时监听dom对象内容的改变。
还可以是change,表示输入内容后回车或者失去焦点后触发监听事件。(这个change可以不用谢在bind内,可以直接打点调用)

除了上述事件外,event还可以有哪些?越详细越好。

补充一下: 需要写在bind里面的事件有哪些?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
182 views
Welcome To Ask or Share your Answers For Others

1 Answer

有事没事逛逛 MDN
https://developer.mozilla.org...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...