【发布时间】:2015-05-13 12:58:51
【问题描述】:
我有一个基本的 Cordova 应用程序,实际上是 Visual Studio 2015 RC 的默认模板。以下不适用于 Index.html,我只添加了一个带有 onclick 事件的按钮,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>OMFG</title>
<!-- OMFG references -->
<link href="css/index.css" rel="stylesheet" />
</head>
<body>
<p>Hello, your application is ready!</p>
<!-- Cordova reference, this is added to your app when it's built. -->
<script src="cordova.js"></script>
<script src="scripts/platformOverrides.js"></script>
<script src="scripts/index.js"></script>
<button onclick="alert('foobar!');">Do Stuff!</button>
</body>
</html>
我明白了
0x800a1391 - JavaScript 运行时错误:“警报”未定义
知道发生了什么吗?
【问题讨论】:
标签: javascript cordova visual-studio-2015 visual-studio-cordova win-universal-app