博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[jQuery Note]jQuery Event
阅读量:4655 次
发布时间:2019-06-09

本文共 1220 字,大约阅读时间需要 4 分钟。

 

Code Description Example
bind(eventType,data,handler)||bind(eventMap) bind function to the element example1
unbind(eventType,listener)||unbind(event)    
one(eventType,data,listener) only once example1
live(eventType,data,handler) bind function to the element example1
die(eventType,listener)    
 
example1
 
type 1:one function.
               I like that                                                                   

 

 
type 2:bind function.
 
               I like that                                                                   
 
type 3:live function.
               I like that                                                                   

 

 
 
Type 1 ,when you click the btn1,btn2 btn3 button each once,there will be a new button.but if you click them again,it won't.
 
Type 2 ,when you click the btn1,btn2 btn3 button ,there will be  a new button,and you can create the buttons as many as you like,but you can't create a button via the created button.
 
Type 3 ,when you click the btn1,btn2 btn3 button ,there will be  a new button,and you can create the buttons as many as you like,and you can create a button via the created button as many as you like.

转载于:https://www.cnblogs.com/Xuhaiyang/archive/2012/07/12/2588435.html

你可能感兴趣的文章
2.抽取代码(BaseActivity)
查看>>
夏天过去了, 姥爷推荐几套来自smashingmagzine的超棒秋天主题壁纸
查看>>
反射的所有api
查看>>
css 定位及遮罩层小技巧
查看>>
[2017.02.23] Java8 函数式编程
查看>>
sprintf 和strcpy 的差别
查看>>
JS中window.event事件使用详解
查看>>
ES6深入学习记录(一)class方法相关
查看>>
C语言对mysql数据库的操作
查看>>
INNO SETUP 获得命令行参数
查看>>
HTML5与CSS3权威指南之CSS3学习记录
查看>>
docker安装部署
查看>>
AVL树、splay树(伸展树)和红黑树比较
查看>>
多媒体音量条显示异常跳动
查看>>
运算符及题目(2017.1.8)
查看>>
React接入Sentry.js
查看>>
ssh自动分发密匙脚本样板
查看>>
转 小辉_Ray CORS(跨域资源共享)
查看>>
Linux安装postgresql
查看>>
MyBatis启动:MapperStatement创建
查看>>