所以我正在研究 WebOS enyo 框架并且非常沮丧。我目前在我的日志中收到以下错误。我一直在查看框架中的示例,但似乎无法找到错误的根源。自从我做任何 HTML 或 js 以来已经十多年了,那时我所做的只是非常基本的东西。任何帮助,将不胜感激
未捕获的 ReferenceError:未定义学习,index.html:9
这是一个非常简单的应用程序,我目前只是试图让元素出现在屏幕上。
索引.html
<!doctype html />
<html>
<head>
<title>Learning</title>
<script src="../../enyo/1.0/framework/enyo.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
new MyApps.Learning().renderInto(document.body);
</script>
</body>
</html>
学习.js
enyo.kind({
name: "MyApps.Learning",
kind: enyo.VFlexBox,
components: [
{ kind: "Scrim",
layoutKind: "VFlexLayout",
align: "center",
pack: "center",
components: [
{kind: "SpinnerLarge"}
]
}
]
});
依赖.js
enyo.depends(
"source/Learning.js",
"css/Learning.css"
);
只是为了它
应用信息.json
文件
{
"id": "com.myapps.learning",
"uiRevision": "2",
"version": "1.0.0",
"vendor": "kizelli",
"type": "web",
"main": "index.html",
"title": "Learning"
}