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

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

开发者 https://www.devze.com 2023-04-04 05:03 出处:网络
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.

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

精彩评论

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

关注公众号