钛index.html [英] Titanium index.html

查看:79
本文介绍了钛index.html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Titan和android sdk进行开发.在我的项目中,我有一个index.html,但在执行构建时未加载该文件,它会不断加载欢迎使用钛合金" 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆