钛指数.html [英] Titanium index.html

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

问题描述

我刚刚安装了用于开发的 Titan 和 android sdk.在我的项目中,我有一个 index.html,但它没有加载,当我进行构建时,它不断加载欢迎使用钛" html 页面,在我的生活中,我找不到任何地方可以看到它的加载位置来自.

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.

我到底如何将 my index.html 设置为应用程序第一次加载时加载的那个?我试过添加

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 作为测试)但是即使我创建了一个新的空白项目,它仍然加载这个欢迎到钛 url.

index2.html (index2 as a test) but its still loading this welcome to titanium url even when i make a new blank project.

推荐答案

听起来你创建了一个默认的alloy 项目,app/controllers/index.xml 文件所做的就是加载另一个控制器,可能称为 FirstView 或类似的东西.查看 app 目录中的 views 目录,寻找另一个 .xml 文件.

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.

Alloy 的结构是无论如何先加载 index.xml 文件,所以它甚至无法识别您的 index2.xml.我强烈建议您阅读合金快速入门以获取先说一般概念.

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.

这篇关于钛指数.html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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