<li onclick="show()"><a onclick="showtime()">确定</a><li>
现在点击确定时会同时触发2个事件,要怎样才能点确定只触发showtime,
注:show()这个方法也有用,不能删除jquery javascript触发事件
现在点击确定时会同时触发2个事件,要怎样才能点确定只触发showtime,
注:show()这个方法也有用,不能删除jquery javascript触发事件
解决方案 »
- javascript中的$()
- 请教高手关于js兼容ie6的问题!!!
- 不是高手就不要进来,极端问题?
- jquery验证
- 求救!有什么办法能使ie非法关闭也能执行程序操作??
- Ext中函数作为变量绑定到另一个函数的问题
- FCKeditor编辑框中插入静态HTML页面
- help!关于window.open()中传参数的问题!
- 怎样判断窗口是从父窗口打开的,而不是自己打开的?
- BUI框架使用的时候出现Uncaught TypeError: Cannot read property 'hasError' of null 问题
- 被加密了的js文件,帮忙看一下是不是木马
- 在看JavaScript:权威指南(The.Definitive.Guide ),implementation-defined是什么 意思?谢谢
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function show(){
alert('f');
}
function showtime(e){
alert('f_');
e.stopPropagation();
}
</script>
</head><body>
<li onclick="show()"><a onclick="showtime(event)">确定</a><li>
</body>
</html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function show(){
alert('f');
}
function showtime(e){
alert('f_');
e.stopPropagation();
}
</script>
</head><body>
<li onclick="show()"><a onclick="showtime(event)">确定</a><li>
</body>
</html>