Created
September 18, 2012 03:50
-
-
Save mckelvin/3741134 to your computer and use it in GitHub Desktop.
a script to help book train ticket at 12306.cn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var what; what = setInterval(function(){window.frames['main'].sendQueryFunc()},10000); | |
var the;the = setInterval( function(){if(window.frames['main'].$('#gridbox').html().indexOf('有')!=-1){alert('hehe');clearInterval(what);clearInterval(the);}else{console.log('hehehou')}},5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment