票啊票
var time1 = setInterval(function(){
if(!window.notcQuery){
$('#query_ticket').click();
console.log(456);
setTimeout(function(){
if($('#YZ_55000K104803').html() && $('#YZ_55000K104803').html() != '無') {
window.notcQuery = true;
//window.open('https://kyfw.12306.cn/otn/leftTicket/init');
$('#YZ_55000K104803').parent().find('.btn72').click();
$('#username').val("*******");
$('#password').val("*******");
window.focus();
window.alert('有票啦');
console.log(123);
}
},
2000);
}
},
3000);
if(!window.notcQuery){
$('#query_ticket').click();
console.log(456);
setTimeout(function(){
if($('#YZ_55000K104803').html() && $('#YZ_55000K104803').html() != '無') {
window.notcQuery = true;
//window.open('https://kyfw.12306.cn/otn/leftTicket/init');
$('#YZ_55000K104803').parent().find('.btn72').click();
$('#username').val("*******");
$('#password').val("*******");
window.focus();
window.alert('有票啦');
console.log(123);
}
},
2000);
}
},
3000);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Uniapp中父組件向子組件傳遞prop,新的prop會帶有舊的prop屬性
py_boy
2020-07-08 12:07:32
spa頁面,不同組件按需引入js,aliplayer
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur
HainesFreeman
2020-07-08 12:39:19
js 函數重載
HainesFreeman
2020-07-08 12:39:19
【Echarts+Html+LayUI】同一htlm頁面,點擊不同選項,加載不同echart
33 Audrey
2020-07-08 12:35:22
函數的內部屬性————Arguments對象
ddx2019
2020-07-08 11:55:42
富文本編輯器之————Vue-Quill-Editor
ddx2019
2020-07-08 11:55:42
知道這 20 個正則表達式,能讓你少寫 1,000 行代碼
哈哈金馆长
2020-07-08 11:36:23
a標籤中使用onclick提示function未定義
Ro0k1e
2020-07-08 11:27:27
js給value動態賦值
Old丶Seven
2020-07-08 11:20:47
Promise基本使用(慕課Promise教程筆記)
冰派甜心
2020-07-08 11:05:39
toString()、String(obj)和valueOf()
冰派甜心
2020-07-08 11:05:38
在線查看OFFICE文件
https://view.officeapps.live.com/op/view.aspx?src=你地址
[email protected]
2020-07-08 10:59:52
Vue坑點雜談(一)Module not found Error Cannot resolve file or directory
ODST_TheSolverO5
2020-07-08 10:59:42
24小時熱門文章
-
使用c#強大的表達式樹實現對象的深克隆之解決循環引用的問題
-
GPT-4o 引領人機交互新風向,向量數據庫賽道沸騰了
-
free AI online tools All In One
-
痞子衡嵌入式:恩智浦i.MX RT1xxx系列MCU啓動那些事(12.A)- uSDHC eMMC啓動時間(RT1170)
-
基於Ubuntu-22.04安裝K8s-v1.28.2實驗(二)使用kube-vip實現集羣VIP訪問
-
企業大模型如何成爲自己數據的“百科全書”?
-
本地SSL證書過期 輸入命令在IIS自動生成
-
.NET週刊【5月第2期 2024-05-12】
-
基於Ubuntu-22.04安裝K8s-v1.28.2實驗(一)部署K8s
-
基於Ubuntu-22.04安裝K8s-v1.28.2實驗(三)數據卷掛載NFS(網絡文件系統)