$(function(){
$("input:first").bind("focus",function(){
$("span:first").show()})
$("input:eq(1)").bind("focus",function(){
$("span:eq(1)").show()})
$("input:eq(2)").bind("focus",function(){
$("span:eq(2)").show()})
$("input").bind("blur",function(){
$("span").hide()})
})點(diǎn)擊一下文本框,出來一個提示<span>內(nèi)容,聚焦事件怎樣簡化,能不能簡化為一個表達(dá)式
- 2 回答
- 0 關(guān)注
- 1440 瀏覽
添加回答
舉報(bào)
0/150
提交
取消