PhoneGap的应用程序远程读取html内容 [英] PhoneGap Application reading remote html content

查看:130
本文介绍了PhoneGap的应用程序远程读取html内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以开发利用的PhoneGap它在运行时从远程位置读取HTML内容混合应用程序?

Can I develop hybrid application using phonegap which reads html content at runtime from remote location?

如果有的话,它将为Android的工作,以及iOS的?

If yes, will it work for both Android as well as iOS?

推荐答案

是的,这是很容易在Android上做以上评论提供了做这件事。另一种是让你想要的HTML AJAX请求,并将其注入到你的页面。然而尽管它在技术上是可行的苹果甚至不会这样。你最好通过请求AJAX数据,然后显示在你的应用程序中的数据,而不是拉低纯HTML。

Yes, this is very easy to do on Android and the comment above provides one way to do it. Another is to make AJAX request for the HTML you want and inject it into your page. However Apple will not like this even though it is technically possible. You are better off requesting data via AJAX and then displaying the data in your app rather than pulling down pure HTML.

这篇关于PhoneGap的应用程序远程读取html内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆