mousedown 點(diǎn)擊下去,拖動(dòng)離開(kāi)元素也可觸發(fā);mouseup ,拖動(dòng)離開(kāi)就不能觸發(fā)了,大家可以測(cè)試一下,這里老師說(shuō)得有點(diǎn)問(wèn)題
2016-08-12
mouseenter 只會(huì)在本身調(diào)用事件 不會(huì)向上冒泡到父元素的相同事件上
2016-08-12
測(cè)試3這樣寫(xiě)會(huì)不會(huì)更好理解
<script type="text/javascript">
$(".right").mousemove(1111,function(e){
$(this).find('p:last').html('數(shù)據(jù):' + e.data)
})
</script>
<script type="text/javascript">
$(".right").mousemove(1111,function(e){
$(this).find('p:last').html('數(shù)據(jù):' + e.data)
})
</script>
2016-08-11
<form action="______">這里面的地址就是提交之后頁(yè)面跳轉(zhuǎn)的地址。
2016-08-10
我覺(jué)得吧,可以吧測(cè)試三的n換成x,y,z之類(lèi)的。要不測(cè)試二和三的n值就串了。
2016-08-10