【发布时间】:2012-02-21 00:58:08
【问题描述】:
我在使用带有 phonegap (android/eclipse) 的常规 HTML 输入类型按钮时出现了奇怪的行为。这是让我头疼的 HTML:
<!DOCTYPE HTML>
<html>
<head>
<title>PhoneGap</title>
<script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"></script>
<script type="text/javascript" src="jquery/jquery-1.7.1.js"></script>
<script type="text/javascript" src="jquery/jquery.mobile-1.0.1.js"></script>
</head>
<body>
<h1>Hello World</h1>
<form>
<input type="button" value="Rest Call" onClick="restCall(); />
<button type="button" onClick="restCall();">Rest Call</button>
</form>
</body>
</html>
这样做的结果是两个具有正确标签/值的按钮,“Rest Call”。但是,在两个按钮的左侧也显示了相同的文本。所以标签/值会显示两次。
我现在花了一些时间,但没有找到解决方案。希望有人能帮忙。
干杯, 奥玛
【问题讨论】:
标签: android html button cordova