BindO
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/bindo
软件介绍
If you're looking for a quick and easy way to bind your Javascript objects to jQuery events, then BindO is just for you. BindO is a jQuery plugin that makes it possible for you to capture jQuery events with an object.
For example:
// Form Mailer class
FormMailer = function() {
// do something here
}
FormMailer.prototype = new Object;
FormMailer.prototype.submit = function(event) {
alert('About to submit form');
this.process(); // call the process function
$(event.target).fadeOut(); // fade
out #element
}
FormMailer.prototype.process = function() {
// process data here
}
// create a new instance of FormMailer
myform = new FormMailer();
// now bind the click event to myform.submit
$('#element').bind('click',[myform, 'submit']);Ruby元编程(第2版)
[意] Paolo Perrotta / 廖志刚 / 华中科技大学出版社 / 2015-8-1 / 68.80
《Ruby元编程(第2版)》在大量剖析实例代码的基础上循序渐进地介绍Ruby特有的实用编程技巧。通过分析案例、讲解例题、回顾Ruby类库的实现细节,作者不仅向读者展示了元编程的优势及其解决问题的方式,更详细列出33种发挥其优势的编程技巧。本书堪称动态语言设计模式。Ruby之父松本行弘作序推荐。一起来看看 《Ruby元编程(第2版)》 这本书的介绍吧!
