当页面加载和按钮出现时,自动单击按钮

时间:2017-02-11 12:03:21

标签: javascript

$( document ).ready(function() {
   var inPage = document.documentElement.innerHTML.indexOf('CLICK AGAIN NOW') > 1,
    pr = document.querySelector("button.now-all.all-button");

if (inPage && pr) pr.click();
});

页面已加载!该按钮会自动消失,但我想点击“#34;立即点击”#34;页面上显示时自动按钮。

1 个答案:

答案 0 :(得分:0)

    int number;
    if (dotted==true)
    {
        if (input >= 1 && input <= 21)
        {
            number = 1;
            System.out.print("True");
        }
        if (input >= 22 && input <= 40)
        {
            number = 2;
            System.out.print("False");
        }
        if (input >= 41 && input <= 63)
        {
            number = 3;
            System.out.print("False");
        }
        if (input >= 64 && input <= 82)
        {
            number = 4;
            System.out.print("True");
        }
  }
  else
  {
    if (input >= 2 && input <= 22)
        {
            number = 1;
            System.out.print("True");
        }
        if (input >= 23 && input <= 41)
        {
            number = 2;
            System.out.print("False");
        }
        if (input >= 42 && input <= 64)
        {
            number = 3;
            System.out.print("False");
        }
        if (input >= 65 && input <= 83)
        {
            number = 4;
            System.out.print("True");
        }
  }
System.out.print(number);  // number is not initialized?