0

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

4

1 回答 1

2

你需要打开窗户

win1.open();
于 2011-08-15T12:25:11.270 回答