我的app.js
文件是:
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#fff');
// create tab group
//var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'TAB 1',
backgroundColor:'#f00'
});
win1.addEventListener('click',function()
{
// set background color back to white after tab group transition
alert('#fff');
});
并且所有负载都是红色的“Powered by Titanium”屏幕。我做错了什么?
答案 0 :(得分:2)
你需要打开窗口
win1.open();