【发布时间】:2014-01-31 13:38:07
【问题描述】:
我希望将一些配置数据从 web 视图传递到应用程序。我认为最好的方法是链接到包含所有信息的文件。将链接添加到网页视图页面的最佳方式是什么?
类似于:
<head>
<meta name="my-app-config" content="http://my-app-ulr.com/config.xml">
</head>
适合应用阅读吗?或者我应该在标题中使用自定义元素,如果需要,我可以在其中传递更多数据,例如:
<head>
<my-app type="config">http://my-app-ulr.com/config.xml"</my-app>
</head>
从应用程序中读取 Web 视图内容是否有优势?
【问题讨论】:
标签: android ios xml webview naming