收到此错误:
Uncaught TypeError: Object [object Object] has no method 'live'
从此 JavaScript 和 jQuery 代码:
init: function(options) {
var form = this;
if (!form.data('jqv') || form.data('jqv') == null ) {
options = methods._saveOptions(form, options);
// bind all formError elements to close on click
$(".formError").live("click", function() {
//Getting error here:
//Uncaught TypeError: Object [object Object] has no method 'live'
});
}
return this;
};
为什么live
缺少方法?