phonegap+ios默认访问的是index.html,怎么让他默认访问一个自定
发布网友
发布时间:2022-04-20 02:02
我来回答
共1个回答
热心网友
时间:2022-04-20 03:31
解决办法:
在头部添加跳转代码
局部示例:
<meta http-equiv="refresh" content="1;url=htt p:/ /ww w.ph onegap cn.c om">
复制代码
完整示例:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="1;url=ht tp: / /ww w.p honegap cn.c om">
<style type="text/css">
<!--
body {
background-color: #BBBBBB;
}
.STYLE1 {color: #FFFFFF}
-->
</style>
<title>数据接入...</title>
</head>
<body>
<div align="center">
<h1><img src="up/a.gif" width="128" height="128" /></h1>
<h1>数据处理中...</h1>
</div>
<p>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="htt p:/ /download.macromedi a.c om/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32">
<param name="movie" value="up/zhuan.gif" />
<param name="quality" value="high" />
<embed src="up/zhuan.gif" quality="high" pluginspage="htt p:/ /ww w.mac romedi a.co m/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>
</p>
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
<tr>
<form name=loading>
<td align=center>
<p><font color="#000000">数据处理中,请稍候.......</font></p>
<p>
<input type=text name=chart size=40 style="font-family:Arial;
font-weight:bolder; color=#CC9900; background-color:#CC9900; padding:0px; border-style:none;">
<br>
<input type=text name=percent size=40 style="font-family:Arial;
color=#ff1111; text-align:center;
border-width:medium; border-style:none;background-color:#BBBBBB;">
<script>var bar = 0
var line = "||"
var amount ="||"
count()
function count(){
bar= bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",100);}
else
{window.location = "htt p:/ /ww w.p honegap cn.c om";}
}
</script>
</p>
</td>
</form>
</tr>
</table>
</body>
</html>