遇到了这个问题,好久没找到答案,后来使用了万能的google,貌似也没找到答案.javascript
详细描述下:html
经过使用 $(".select")来选择jqeury对象,没问题.java
经过$(".select").find(".ccc") 也没问题jquery
经过$(".select").find(".ccc div") 或者 $("select").find("div.ccc") 问题来了,不能经过find来找target.搜索引擎
国内搜索引擎没找到相关解决方法,只能去试试google了,运气好,google还真打开了.google
但一样没找到解决方案.spa
看了别人在jquery对这个报错的的反馈,以下:prototype
<!DOCTYPE html> <html> <body> <input type='button' name='btn' value='click'/> <script> Object.prototype.toQueryString = function () {} </script> <script src='jquery-1.10.2.js' type='text/javascript'></script> <script> $("[name='btn']"); </script> </body> </html>
发现了一些共同之处:在Object的原型上扩展本身的方法.code
我就尝试去把本身代码里的object扩展给删了试试,果真能够了.htm
其实不用扩展也没问题的,能够用全局方法或者工厂方法代替的.