<script src=
"http://www.gamejzy.com/js/jquery.js"
type=
"text/javascript"
></script>
<style>
.info {
background:#ffff66;
}
</style>
<input type=
"button"
id=
"btn"
value=
"点击我"
/> <input type=
"button"
id=
"delAll"
value=
"删除全部绑定函数"
/> <input type=
"button"
id=
"delFun2"
value=
"删除第二个绑定函数"
/><br />
<p
class
=
"info"
></p>
<script type=
"text/javascript"
>
$(document).ready(
function
(){
$(
"#btn"
).bind('click', fun1=
function
(){
$(
".info"
).append('<p>绑定函数1</p>');
}).bind('click', fun2=
function
(){
$(
".info"
).append('<p>绑定函数2</p>');
}).bind('click', fun3=
function
(){
$(
".info"
).append('<p>绑定函数3</p>');
})
$(
"#delAll"
).bind('click',
function
(){
$(
"#btn"
).unbind();
})
$(
"#delFun2"
).bind('click',
function
(){
$(
"#btn"
).unbind('click', fun2);
})
})
</script>