zoukankan
html css js c++ java
jquery bind & unbind
<!
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
>
4
-
6
-
2
<
/
title>
<
style type
=
"
text/css
"
>
*
...
{margin:
0
;padding:
0
;}
body
...
{ font
-
size: 13px; line
-
height:
130
%
; padding: 60px; }
p
...
{200px;background:#
888
;color:white;height:16px;}
<
/
style>
<
script src
=
"
../../scripts/jquery-1.3.1.js
"
type
=
"
text/javascript
"
><
/
script>
<
script type
=
"
text/javascript
"
>
$(
function
()
...
{
$(
'
#btn
'
).bind(
"
click
"
,
function
()
...
{
$(
'
#test
'
).append(
"
<p> 我的绑定函数1</p>
"
);
}
).bind(
"
click
"
,
function
()
...
{
$(
'
#test
'
).append(
"
<p> 我的绑定函数2</p>
"
);
}
).bind(
"
click
"
,
function
()
...
{
$(
'
#test
'
).append(
"
<p> 我的绑定函数3</p>
"
);
}
);
$(
'
#delAll
'
).click(
function
()
...
{
$(
'
#btn
'
).unbind(
"
click
"
);
}
);
}
)
<
/
script>
<
/
head>
<
body
>
<
button id
=
"
btn
"
>
点击我
<
/
button>
<
div id
=
"
test
"
><
/
div>
<
button id
=
"
delAll
"
>
删除所有事件
<
/
button>
<
/
body>
<
/
html>
other effect:
http://api.jquery.com/mousemove/
http://api.jquery.com/fadeIn/
查看全文
相关阅读:
SQL查询,点击三维图层,查询属性信息
title标签的使用
idea快捷键大全
intellij idea创建第一个动态web项目
IDEA设置为黑色背景(今天开始使用idea,并记录点滴,记录坑)
Eclipse导出Jar包(包含外部包)
获取当前系统时间
JS实现的ajax和同源策略
缓存
Restful Framework (四)
原文地址:https://www.cnblogs.com/lexus/p/1735514.html
最新文章
绝对定位和相对定位
清浮动方法
JSON.parse、JSON.stringify和eval的区别和作用
java中Map遍历
取得子iframe的form表单
POI读取excel单元格,获取单元格各类型值,返回字符串类型
POI 中的CellType类型以及值的对应关系
事件on和onclick 两者之间的区别
Oracle-单表合并列
Oracle-decode函数
热门文章
JavaScript-获得当前时间
JavaScript-获得当前时间
JavaScript-CheckBox全选/反选
JavaScript-CheckBox全选/反选
JavaScript-日期格式化(一)
JavaScript-日期格式化(一)
谈项目需求
取List中的前几条数据
Spring-Boot配置文件的常用配置,以及properties与yml配置文件的不同
关于leaflet.js实现出图,图层叠加,气泡弹窗等
Copyright © 2011-2022 走看看