0

我正在尝试在 Android 浏览器中启动我的应用程序。如果计时器调用了 start() 方法,则会出现断开的链接。如果按下按钮,start() 将运行应用程序。拜托,你能帮帮我吗?

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Test page</title>
  </head>
  <body>
        <button onclick="start()">Button</button>
  <script>
      setTimeout(function() {
          start();
      }, 3000);
      function start() {
          window.open("http://com.xxx/xxx-services/user/reset-password/12345", "_self")
      }
  </script>
  </body>
</html>
4

0 回答 0