【发布时间】:2021-06-21 21:26:41
【问题描述】:
我正在尝试运行它,在桌面上运行良好,但在移动设备上无法运行
<div style="margin-top: 30px">
<p style="text-align: center; color: white; margin-bottom: 10px">Experimente o Wi-Fi gratuitamente! Curta e compartilhe nossa página!</p>
<a id="freebot" class="button" onclick="sharePost();" href="#">Entre com o Facebook</a>
<a id="loginfree" href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)"></a>
</div>
这是我要执行的功能
function authHotspotMikrotik() {
document.getElementById("loginfree").click();
}
有人可以帮我吗?
【问题讨论】:
-
这个 JavaScript 可以在任何浏览器上运行。到底出了什么问题?不清楚。
-
@ADyson,在桌面上,该功能通过打开链接(href)即可完美运行,但在移动设备上无法运行
标签: javascript php html function mobile