だから私は WebOS enyo フレームワークを掘り下げていて、非常にイライラしています。現在、ログに次のエラーが記録されています。フレームワークのサンプルを見てきましたが、エラーの原因がどこにあるのかわかりません。私が HTML や js を作成してから 10 年以上が経ちましたが、当時私が行っていたのは非常に基本的なことでした。どんな助けでもいただければ幸いです
Uncaught 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>
Learning.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"
);
そして、それの一体のために
appinfo.json
ファイル
{
"id": "com.myapps.learning",
"uiRevision": "2",
"version": "1.0.0",
"vendor": "kizelli",
"type": "web",
"main": "index.html",
"title": "Learning"
}