checkbox在IE下双击后为选中状态,其他主流浏览器则为先选中后取消选中.
IE的bug
将双击事件重写
<script type="text/javascript"> $(document).ready(function() { $("input[type='checkbox']").attr('ondblclick', 'this.click()'); }); </script>
checkbox在IE下双击后为选中状态,其他主流浏览器则为先选中后取消选中.
IE的bug
将双击事件重写
<script type="text/javascript"> $(document).ready(function() { $("input[type='checkbox']").attr('ondblclick', 'this.click()'); }); </script>
转载于:https://www.cnblogs.com/sky-gfan/p/9317498.html