jQuery(html,[ownerDocument])
参数中的[ownerDocument]应该为HTMLDocument,方法才能成功创建一个jQuery对象,如果不填这个参数,则默认为当前的Document
本人在开发 Firefox插件 的时候需要用到ajax调用获取一个 html的字符串,使用$(data)的时候没有任何异常和错误,也没有jquery对象产生,经测试写成$(data,window._content.document) 就可以正常使用了,原因是其中window._content.document类型是 HTMLDocument,而在没有写第二个参数的时候默认使用的是XULDocument