IOS端打开scheme协议,操作怎么无效?求解
<p><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><span style="color: rgb(0, 0, 159);">通过官方文档使用</span></span>scheme打开小火箭VPN,代码如下:</p><p><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><span style="color: rgb(0, 0, 159);">from</span> ascript.ios <span style="color: rgb(0, 0, 159);">import</span> system</span><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><br></span></p><div style="background-color: rgb(255, 255, 254); font-family: Consolas, "Courier New", monospace; font-size: 15px; line-height: 20px; white-space: pre;"><div>system.scheme_start(<span style="color: #a31515;">"shadowrocket://connect"</span>)</div><div><br></div><div>执行时打开的时ascript的界面,小火箭的scheme协议</div>
<span style="color: rgb(163, 21, 21);">shadowrocket://connect</span></div><div style="background-color: rgb(255, 255, 254); font-family: Consolas, "Courier New", monospace; font-size: 15px; line-height: 20px; white-space: pre;">是开启vpn的操作,我在手机浏览器输入 <span style="color: rgb(163, 21, 21);">shadowrocket://connect 是能打开的,但是通过官方文档的 </span>
system.scheme_start(<span style="color: rgb(163, 21, 21);">"shadowrocket://connect"</span>)
始终无法运行开启功能。有知道原因的麻烦解答下,谢谢
</div>
收藏(0)
分享
相关标签:
注意:本文归作者所有,未经作者允许,不得转载