zoukankan      html  css  js  c++  java
  • 随笔

    window.addEventListener ("load", myMain1, false);

    function myMain1 (evt) {
    var jsInitChecktimer = setInterval (checkForJS_Finish, 111);

    function checkForJS_Finish () {
    if ( typeof SOME_GLOBAL_VAR != "undefined"
    || document.querySelector ("#m_common_header_shortcut_h_footprint")
    ) {
    clearInterval (jsInitChecktimer);
    // DO YOUR STUFF HERE.
    // $(".confirm-pay").trigger("touchend");
    var str = $("a.pay-list-link.no-border span.mark");
    if(str!=undefined&&str!=null&&str.length!=0){
    strstr = str.text();
    var num = strstr.replace(/[^0-9]/ig,"");
    if(num>35){
    $(".confirm-pay").trigger("touchend");
    }
    }

    }
    }
    }

    window.addEventListener ("load", myMain2, false);

    function myMain2 (evt) {
    var jsInitChecktimer = setInterval (checkForJS_Finish, 111);

    function checkForJS_Finish () {
    if ( typeof SOME_GLOBAL_VAR != "undefined"
    || document.querySelector (".vux-popup-mask")
    ) {
    clearInterval (jsInitChecktimer);
    // alert(1);
    // DO YOUR STUFF HERE.

    // setTimeout("window.location.reload()",50);停顿几秒再刷新

    setTimeout("clickNum()",100);

    // var confirmSpan = $("div.confirm-container div.confirm-box.type-short div ul li:nth-child(3) span");
    // if(confirmSpan==undefined || confirmSpan == null || confirmSpan.length==0){
    // setTimeout("window.location.reload()",100);
    // }
    }
    }
    }

    function clickNum(){
    var var1 = $("ul.jkd-ul li:nth-child(1) div:nth-child(1)");
    var var2 = $("ul.jkd-ul li:nth-child(1) div:nth-child(2)");
    var var3 = $("ul.jkd-ul li:nth-child(1) div:nth-child(3)");
    var var4 = $("ul.jkd-ul li:nth-child(2) div:nth-child(1)");
    var var5 = $("ul.jkd-ul li:nth-child(2) div:nth-child(2)");
    var var6 = $("ul.jkd-ul li:nth-child(2) div:nth-child(3)");
    var var7 = $("ul.jkd-ul li:nth-child(3) div:nth-child(1)");
    var var8 = $("ul.jkd-ul li:nth-child(3) div:nth-child(2)");
    var var9 = $("ul.jkd-ul li:nth-child(3) div:nth-child(3)");
    var var0 = $("ul.jkd-ul li:nth-child(4) div:nth-child(2)");

    var7.click();
    var7.click();
    var0.click();
    var7.click();
    var1.click();

    }

  • 相关阅读:
    jchdl
    jchdl
    jchdl
    jchdl
    jchdl
    jchdl
    jchdl
    UVa 437 (变形的LIS) The Tower of Babylon
    UVa 1025 (动态规划) A Spy in the Metro
    UVa 10129 (并查集 + 欧拉路径) Play on Words
  • 原文地址:https://www.cnblogs.com/javac/p/9912480.html
Copyright © 2011-2022 走看看