这是演示 模拟京东抢购 的js脚本,demo而已,具体商品自行修改
1 登录 网页京东,进入https://item.jd.com/10024680695127.html,选好参数
2 打开开发者模式,插入如下代码
count=1
nIntervId=0
stop=0
var goDate
function start(){
if (stop==1){
clearInterval(nIntervId);//停止监控
return
}
if (Date.now() < goDate){
return
}
console.log(" ^_^ 正在帮你抢购************* 刷新" + count + "次"+"host:" + window.location.hostname);
count++;
if ($(parent.frames[0].document).find("#InitCartUrl").length==