javascript - 无法从 Safari Web Inspector 向 iOS 设备发送控制台命令
<p><p>Sarari 网络检查员指南 <a href="https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html" rel="noreferrer noopener nofollow">says</a> :</p>
<blockquote>
<p>Use the console as a tool to modify your web content via interactive commands</p>
</blockquote>
<p>然后继续列出一些示例命令,包括 <code>console.log(object)</code>。</p>
<p>但是,当我尝试任何命令并按回车键时,什么都没有发生。</p>
<p> <a href="/image/vQZhx.png" rel="noreferrer noopener nofollow"><img src="/image/vQZhx.png" alt="Screenshot"/></a> </p>
<p>我错过了什么?为什么我不能通过回车键发送控制台命令?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>TLDR:安装 Safari 技术预览 <a href="https://developer.apple.com/safari/download/" rel="noreferrer noopener nofollow">https://developer.apple.com/safari/download/</a> </p>
<p>升级到以下版本后,我的控制台停止工作:</p>
<p>macOS:大苏尔 11.4 (20F71)
Safari :14.1.1 (16611.2.7.1.4)
iPhone iOS:14.5</p>
<p>花了几个小时试图解决这个问题,重置、重新启动、重新安装等,直到我发现这条评论建议尝试 Safari Technology Preview。我的常规 Safari 仍然无法使用,但 Safari 技术预览版(Release 125 (Safari 14.2, WebKit 16612.1.15.1.12))就像一个魅力。</p>
<p> <a href="https://stackoverflow.com/questions/60963057/safari-web-inspector-is-only-showing-sources-console-and-audit#comment112035489_60963057" rel="noreferrer noopener nofollow">Safari web inspector is only showing Sources, Console and Audit</a> </p>
<p>Safari Technology Preview 与常规 Safari 并行安装,您可以将其仅用于开发。在这里找到它<a href="https://developer.apple.com/safari/download/" rel="noreferrer noopener nofollow">https://developer.apple.com/safari/download/</a> </p></p>
<p style="font-size: 20px;">关于javascript - 无法从 Safari Web Inspector 向 iOS 设备发送控制台命令,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/31870323/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/31870323/
</a>
</p>
页:
[1]