钛index.html [英] Titanium index.html
问题描述
如何将 my index.html设置为首次加载应用程序时加载的index.html?我尝试添加
index2.html(作为测试的index2),但即使在我创建一个新的空白项目时,它仍然将这种欢迎加载到钛制url中.
听起来像您创建默认合金项目一样,app/controllers/index.xml
文件所做的只是加载另一个控制器,该控制器可能称为FirstView或类似名称.在app
目录内的views
目录中查找另一个.xml
文件.
Alloy的结构是无论如何都首先加载index.xml
文件,因此它甚至无法识别您的index2.xml
.我强烈建议您浏览合金快速入门以获取一般概念优先.
ive just installed titanium and the android sdk for development. In my project i have an index.html but its not loading that when i do a build, it keeps loading a 'welcome to titanium' html page which for the life of me i just can't find anywhere to see where its being loaded from.
How the heck do i set my index.html to be the one that is loaded when the app first loads? I have tried adding
index2.html (index2 as a test) but its still loading this welcome to titanium url even when i make a new blank project.
Sounds like you created a default alloy project, all the app/controllers/index.xml
file does is load another controller, probably called FirstView or something like that. Look through your views
directory inside the app
directory for another .xml
file.
The structure of Alloy is that the index.xml
file is loaded first no matter what, so it is not even recognizing your index2.xml
. I would highly recommend you go through the Alloy Quick Start to get the general concepts first.
这篇关于钛index.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!