XHR2改めXHRではresponseType = 'document'でHTML文書を返してくれる。で、Fx11, Cr18から使えるようになっている。 var xhr = new XMLHttpRequest(); xhr.onload = function () { console.log(this.response instanceof HTMLDocument); } xhr.open('GET', 'foo.html'); xhr.responseType = 'document'; xhr.... > このページを見る
最終更新時間:
2012年02月16日23時02分








