コード
var self = Ti.UI.createWindow(
{
backgroundColor : '#cccccc',
navBarHidden : true,
exitOnClose : true
});
var button1 = Ti.UI.createButton(
{
height : 44,
width : 200,
title : ('Helo Titanium World!'),
left : 10,
top : 10
});
self.add(button1);
button1.addEventListener('click', function()
{
func1('koma');
});
self.open();
var func1 = function(obj)
{
alert('test func1' + '[' + obj + ']');
};

0 件のコメント:
コメントを投稿