2014年1月2日

jquery插件获取事件类型

摘要: //需要在使用函数时传入event关键字$('[name=lprice]').change(function(event){ $('[name=lprice]').validate({ event:event, }); })在函数中获取(function ( $ ) { var id=33;$.fn.validate=function(options){ // This is the easiest way to have default options. var settings = $.extend({ ... 阅读全文

posted @ 2014-01-02 11:07 左小兵 阅读(244) 评论(0) 推荐(0) 编辑

jquery插件参数传递

摘要: 当传递的参数在函数中未定义时,不会报错,但也不会发生作用,这会造成怎么传递参数不起作用的困惑。 阅读全文

posted @ 2014-01-02 10:04 左小兵 阅读(191) 评论(0) 推荐(0) 编辑

导航