<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script src="jquery-1.5.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#test").click(function(){
alert(1);
});
});
</script>
</HEAD>
<BODY>
<input type="button" name="test" value="123" id="test" οnclick="alert(2);"/>
</BODY>
</HTML>
结论,两个click都执行,顺序:alert(2); alert(1);