PhoneGap构建Android Select

时间:2013-03-28 14:20:21

标签: cordova select phonegap-build

我使用phonegap 2.0构建了一个phonegap应用程序

很棒!

更新到phonegap 2.2时,我发现了下拉功能

她是我堕落之一的一个例子

<select name="ctl00$ContentPlaceHolder2$ddlAgent" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder2$ddlAgent\',\'\')', 0)" id="ctl00_ContentPlaceHolder2_ddlAgent" style="width:90%;text-align:center;">
<option selected="selected" value="1">Option1</option>
<option selected="selected" value="1">Option1</option>
<option selected="selected" value="1">Option1</option>

</select>

我认为这不是配置问题,最新版本的phonegap存在问题吗?还是我的代码?这是一个开始......这是我的头

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-    scale=1.0"/>
<link rel="apple-touch-icon" sizes="114x114" href="images/splash/splash-icon.png"> 
<link rel="apple-touch-startup-image" href="images/splash/splash-screen.png"     media="screen and (max-device-width: 320px)" /> 
<link rel="apple-touch-startup-image" href="images/splash/splash-screen@2x.png" media="        (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)" /> 
<meta name="apple-mobile-web-app-capable" content="yes"/>
<title>DCC On-The-Go</title>

<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/retina.css" media="only screen and (-webkit-min-device-pixel-ratio:     2)" rel="stylesheet" />
<link href="style/buttons.css" rel="stylesheet" type="text/css">
<link href="style/photoswipe.css" rel="stylesheet" type="text/css">

<script src="scripts/jquery.js"></script>
<script src="scripts/easing.js"></script>
<script src="scripts/tweetable.js"></script>
<script src="scripts/roundabout.js"></script>
<script src="scripts/contact.js"></script>
<script src="scripts/swipe.js"></script>
<script src="scripts/klass.min.js"></script>
<script src="scripts/photoswipe.js"></script>
<script src="scripts/retina.js"></script>
<script src="scripts/custom.js"></script>



</head>

我现在也将尝试在2.3和2.1中测试其他版本......

期待人们对phonegap 2.2及此问题的想法,意见和讨论......

2 个答案:

答案 0 :(得分:0)

我建议检查你的html,css和js。 Phonegap不应该干扰下拉等简单功能。另外,你甚至不在你的html头中包含cordova.js.

答案 1 :(得分:0)

在某些时候用config.xml编译并且build.phonegap.com一旦使用了它就不允许在没有config.xml的情况下构建...新构建并且不在了!!!

由于