我需要转换我的以下HTML appp到Android,iphone和windows-8应用程序使用手机间隙Cli。
我已经按照这个链接安装了phonegap的CLI界面:--
http://phonegap.com/install/
现在我需要一些适用于Android、IOS或windows-8的SDK吗?
或者phonegap CLI不需要任何支持SDK来将HTML应用程序转换为移动应用程序?
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
<title>My Mobile App</title>
<script type="text/javascript" src="settings.js"></script>
</head>
<body>
<p>Click the button to trigger a function.</p>
<button onclick="myFunction()">Click me</button>
<p id="demo"></p>
<script>
function myFunction() {
test();
document.getElementById("demo").innerHTML = "Hello World";
}
</script>
</body>
</html>settings.js文件:
function test()
{
alert('clicked');
}发布于 2014-09-16 14:29:23
从cli创建一个phonegap项目,然后将您的html放在www文件夹中,并使用phonegap cli构建它。
喜欢
phonegap构建android
phonegap构建ios
https://stackoverflow.com/questions/25861507
复制相似问题