chrome下jquery的mouseup有问题 $('#dragDiv').mouseup(function(){alert(bOut);});chrome下鼠标离开层dragDiv后松开没反应,ie下可以,何解 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以啊。。当我把它改为alert('bOut');这样测试的时候2个浏览器输出的结果一样。。 这要看你的div的写法了,可以贴出来吗? 按f12 点console 有没有错误提示? 有提示:event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.这是什么原因 找到原因了,jquery更新了提示没了还是弹不出对话框 mouseup 的对象变了,LZ可以看看如下代码<!Doctype html><html><head><script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script><script type="text/javascript"> $(function(){ $(".test2").mouseup(function(event){ alert("test2"); event.stopPropagation() }) $(".test1").mouseup(function(){ alert("test1") }) })</script></head><body><div class="test1" style="background: red; width: 100px; height: 100px;"> <div class="test2" style="background: black; width: 50px; height: 50px;"> </div></div></body></html> 内层可以拖拉,拉到外层边界时停止,鼠标可以继续移动到外层外面,释放左键要弹出对话框,ie下可以,chrome失效http://stackoverflow.com/questions/9310259/jquery-mousedown-mouseup-in-chrome-safari-on-windows这篇帖子也是同样问题 应该是chrome下,鼠标移出点击层,层的焦点失去,mouseup失效 js src获取值问题 extcheckboxtree后台用JSP怎么取值 关于延迟执行for循环的问题。 js 取页面中的值的俩种方法,请问有什么不一样? 求一个匹配除04068以外的5位数字的正则表达式,请高手们帮帮忙,先谢谢了 严重问题!IE7的Zoom的那个东西怎么不见了? 请问关于显示进度条的问题 javascript如何取得name为aa[]的input的值 如何双击一个文本框时不显示以前填写过的数据列表? js深克隆 如何解析从服务器返回的json? 鸭子上架,求教。
这是什么原因
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function(){
$(".test2").mouseup(function(event){
alert("test2");
event.stopPropagation()
})
$(".test1").mouseup(function(){
alert("test1")
})
})
</script>
</head>
<body>
<div class="test1" style="background: red; width: 100px; height: 100px;">
<div class="test2" style="background: black; width: 50px; height: 50px;">
</div>
</div>
</body>
</html>
http://stackoverflow.com/questions/9310259/jquery-mousedown-mouseup-in-chrome-safari-on-windows
这篇帖子也是同样问题