-1
我試過在GM_xmlhttpRequest中使用同步爲false的http請求,但似乎不起作用。設置同步:GM_xmlhttpRequest中的false不起作用
這是怎麼回事? 我的代碼:
GM_xmlhttpRequest({
method: "GET",
url: "http://www.google.com/",
synchronous:false,
onload: function(xhr)
{
if(xhr.readyState == 4) {
r = xhr.responseText;
}
}
});
在此先感謝!