绑定变量基本上就是将函数绑定到内部触发器上以读写该变量。
Tying a variable is basically the binding of functions to the internal triggers for reading and writing that variable.
清单4将change_url函数绑定到对“Go !”按钮的单击事件中。
Listing 4 binds the function change_url to a click of the "Go!" button.
随后调用jQuery blur方法,后者将一个函数绑定到用户名字段的onblur事件。
It then calls the jQuery blur method, which binds a function to the onblur event for the username field.
应用推荐