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
I like that
type 3:live function.
I like that
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.