please help me. i fount This S O question but didn't get any answer推荐答案根据PhoneGap的文档,此处 http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html ,您应该能够获得如下网址:According to PhoneGap's documentation here http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html you should be able to get the url like this:ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); });我不认为您可以从退出事件访问URL,但可以在loadstop事件期间将其存储在全局变量中,然后在退出事件中查看它.I don't believe you can access the url from the exit event but you could store it in a global variable during the loadstop event then view it in the exit event. 这篇关于如何在Phonegap 3.0中的InnApp浏览器中获取当前URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 16:23