0

如何在 html5 混合应用程序中添加 webview,就像我们在本机应用程序中添加 webview

请不要混淆 html5 应用程序在 webview 中的包装并将其添加为本机应用程序。

我需要的是在显示 url 内容的 html5 应用程序中添加一个 web 视图。

4

1 回答 1

0

If you want to display the content of another url within your page, just use an iframe:

<body>
    <p>My stuff</p>
    <iframe src="url_to_load"></iframe>
</body>

Have in account that WebView is a class of the Cocoa framework, which is written in objective-c and allows you to build Mac applications. You can't use this with Html

于 2012-08-20T11:36:35.723 回答