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/
查看全文
相关阅读:
【PyTorch】PyTorch使用LMDB数据库加速文件读取
【PyTorch】PyTorch中的梯度累加
【数字图像处理】Bilateral Filters
【PyTorch】计算局部相似矩阵
【模型压缩】蒸馏算法小结
【深度聚类】Superpixel Sampling Networks
【PyTorch】训练器设置
【语义分割】Dual Attention Network for Scene Segmentation
【网络架构】Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting
【任务指标】Matting任务里的Gradient与Connectivity指标
原文地址:https://www.cnblogs.com/lexus/p/1735514.html
最新文章
Cocos2d+C++运行出现中断的解决方法
云时代架构之订单系统架构这样演进
使用Github上传项目之使用git命令上传
使用GitHub代码仓库Repositories上传自己的项目代码
本周总结
判定表
本周总结
程序报告
各个方法的优缺点
本周总结
热门文章
本周总结
开发进度以及问题
课后感想
【CoSOD】Re-thinking Co-Salient Object Detection
【CoSOD】ICNet: Intra-saliency Correlation Network for Co-Saliency Detection
我是如何使计算提速>150倍的
【Python】我是如何使计算时间提速25.6倍的
【Docker】Ubuntu上使用Docker的简易教程
【LaTeX】LaTeX写论文的一些有用的指令
【计算机图形学】针孔相机模型
Copyright © 2011-2022 走看看