【发布时间】:2015-08-01 23:34:30
【问题描述】:
所以我正在构建一个更大的应用程序,但我无法让这个简单的代码工作,这最终对我们的项目至关重要,我不知道为什么。我对 Phonegap 很陌生,所以任何帮助都很棒。这是我的代码: https://github.com/dezert99/RIME/blob/master/www/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>PhoneGap</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript">
app.initialize();
</body>
</html>
index.js 文件:https://github.com/dezert99/RIME/blob/master/www/index.js 正常警报,也没有显示带有通知插件的警报。
【问题讨论】:
-
我只是导入您的项目,警报工作正常。
-
是的,它对我有用...
标签: javascript android html cordova phonegap-plugins