我的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”屏幕。我究竟做错了什么?