=0&&(i=h.split(\".\"),h=i." />
开发者

jquery uncaught exception: Syntax error, unrecognized expression: .[object Object] with keypress function

uncaught exception: Syntax er开发者_如何学JAVAror, unrecognized expression: .[object Object]

[Break On This Error] (function(a,b){function cv(a){return f...indexOf(".")>=0&&(i=h.split("."),h=i.
jquery.min.js (line 16)

Has anyone ever gotten this error?

This is what generates it.

$('input').live('keypress',function(){
    console.log('fdsdfs');  
});

When I execute in the console in jquery it initializes on all my inputs. When I type I get that error.


Most of the time random errors in jQuery code base are caused by plugins or sending the wrong data type for the method. In you =r case the key event looks fine so look at the plugins.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜