// 露天批次加入追蹤的javascript
// 整理清單用的regex
// 搜尋目標 .* (\()(\d+)(\)).*
// 取代成為 \2
// 搜尋目標 \d?\D
// 取代成為 空白
// 搜尋目標 \r\n
// 取代成為 ","

var params = "";
var url = "http://goods.ruten.com.tw/item/自己找.php";
var g_no = ["11111111111111","22222222222222","33333333333333"];

for(i=0; i<g_no.length; i++) {
var http = new XMLHttpRequest();
http.onreadystatechange = function() {
if(http.readyState == 4 && http.status == 200) {
//alert(http.responseText);//可以不用
}
}
params = "g_no="+g_no[i];
//alert(params);
http.open("POST", url, true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.send(params);

var dt = new Date();//暫停用
dt.setTime(dt.getTime() + 1000);//暫停用
while (new Date().getTime() < dt.getTime());//暫停用
}

arrow
arrow
    全站熱搜

    abort 發表在 痞客邦 留言(0) 人氣()