// ==UserScript==
// @name name
// @namespace namespace
// @include http://xxx.com/xx.aspx
// @version 1
// @grant GM_xmlhttpRequest
// ==/UserScript==
GM_xmlhttpRequest({
method: 'POST',
url: 'http://xxx.com/Ajax/xx.php',
data:"a=a&b=b&c=c&d=d",
headers: {"Content-Type": "application/x-www-form-urlencoded"},
onload: function(responseDetails) {
alert(responseDetails.status +
' ' + responseDetails.statusText + 'nn' +
'Feed data:n' + responseDetails.responseText);
}
});
GET示例可以看这里:http://wiki.greasespot.net/GM_xmlhttpRequest#GET_request
如本文对您有用,您的捐赠和留言将是我最好的支持~
如您愿意,请向更多志同道合的朋友们推荐本站,谢谢。
请尊重他人劳动成果。
转载请务必附上原文链接,我将感激不尽。
有什么问题可以 留言或QQ联系我
留言