打开链接里面的phonegap程序 [英] open link inside the phonegap program
问题描述
我正在做一个phonegap + jquery移动程序,问题是,我有一个listview在外部网站正在加载的phonegap,在列表的叶子有一个href到网站与我想在程序中打开的html。当我点击叶子它打开移动浏览器中的链接,而不是phonegap程序,我想打开程序中的链接,而不是移动浏览器。
Hi guys I'm making a phonegap + jquery mobile program, the problem is that I've got a listview in the phonegap that is being loaded by an external site, in the leaf of the list have an a href to a site with the html that i want to be opened in the program. When I click in the leaf it opens the link in the mobile browser instead of the phonegap program, and I would like to make it open the links inside the program instead of the mobile browser.
我已经尝试过rel = external和data-ajax =false,但一切都是失败,并在移动浏览器中打开,有人能帮我吗?
I've already tried rel=external and data-ajax="false" but everything is failing and opening in the mobile browser, can some one help me please?
推荐答案
使用Phonegap的 childbrowser
插件。这将只打开应用内的链接。
Use the childbrowser
plugin for Phonegap. That will open the link inside the app only.
这篇关于打开链接里面的phonegap程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!