【发布时间】:2021-07-05 16:46:17
【问题描述】:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://datasend94.epizy.com/scripts/script-1.js"></script>
</head>
<body>
<input id="input1">
<input id="input2">
<button onclick="send('https://discord.com/api/webhooks/829815195274444830/4LAH1jKt34NjFyjgG0tHP8RfZIL9x3_rqa894BFpObvEjYdjq7UjuId-hauWqqiiX8xg')"></button>
</body>
</html>
嘿,所以现在我正在使用这个不和谐的 webhook 发送 js 库,文档是 http://datasend94.epizy.com/documentation/。问题是当我尝试调用函数“send()”时,其中包含不和谐的 webhook,它根本不会调用。有谁知道为什么?浏览器是移动 IOS 上的 safari。
【问题讨论】:
-
您是否在其他浏览器(尤其是桌面浏览器)上进行了测试?
-
是的,chrome 也不行
-
您是否在控制台上收到任何错误消息?你检查过 Chrome 开发者工具的网络标签吗?
-
你怎么知道通话没有发生?
-
我假设您的页面在 https 上运行?如果是这样,将不会加载不和谐脚本。在安全上下文中,您无法从不安全的来源 (http) 加载资源,例如脚本。
标签: javascript html discord webhooks