我是 KnockOut js 的新手。当我在 Visual Studio 2012 中尝试一个简单的 Hello World 示例时,我收到一个运行时异常,提示“Javascript 运行时错误:ko 未定义”。请帮助我
这是我的代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>App1</title>
<!-- WinJS references -->
<link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
<script src="//Microsoft.WinJS.1.0/js/base.js"></script>
<script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
<!-- App1 references -->
<link href="/css/default.css" rel="stylesheet" />
<script src="/js/default.js"></script>
<script src="/js/knockout-3.0.0.js" type="text/javascript"></script>
<script src="/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<p>Hello, <span data-bind="text:name"></span>!</p>
<script>
ko.applyBindings({name:ko.observable('World')});
</script>
</body>
</html>