2

おはようございます。AJAX で別のページの html を取得しています。

var xml = new XMLHttpRequest()
xml.onreadystatechange = function () {
    if (xml.readyState == 4) {
        // here I need to work with data
        // xml.responseText
    }
}
xml.open("GET", url, false);
xml.send(null)

別のページの html コンテンツに querySelectorAll() を適用するにはどうすればよいですか?

4

2 に答える 2