1

从下面的脚本返回的数据是一个本地完整的网页,但我不断收到context: undefined 我错过了什么吗?我只是想选择身体。

$.get(URL, function(html) {
    var body = $("body", html);
}, "html");

为了详细说明,我想要我刚刚请求的原始 HTML 的 body 元素:

[prevObject: st.fn.st.init[67], context: undefined, selector: "body", jquery: "1.9.0",     constructor: function…]
context: undefined
length: 0
prevObject: st.fn.st.init[67]
selector: "body"
__proto__: Object[0]
4

0 回答 0