HarmonyOS快速入门-使用JS语言开发

webpenson, 27 六月, 2021

https://developer.harmonyos.com/cn/docs/documentation/doc-guides/start-overview-0000000000029602

https://developer.harmonyos.com/cn/docs/documentation/doc-guides/start-with-js-0000000000029619

在华为官方的入门教程里,

创建另一个页面

  1. “Project”窗口,打开entry > src > main > js > default,右键点击“pages.index”文件夹,选择New > JS Page,命名为details,单击回车键。

    创建完成后,可以看到“pages”文件夹下的“index”“details”文件夹

但是我建起来后文件夹在index文件夹里面呢  然后我在资源管理器中自己移了一下,编译不了,不过现在可以看到单独的pages文件夹了,重新右键新建了个JS Page 接下来按教程走就好了,这个pages.index文件夹是要怎么设置一下吗?

 

评论