내 버튼을 클릭하면 다른 화면으로 이동하고 싶습니다. 어떻게 이것을 티타늄에서 얻을 수 있습니까?티타늄 : 한 화면에서 다른 화면으로 이동
var TrialButton = Titanium.UI.createButton({
color:'black',
backgroundColor:'#FFFFFF',
title:'Trial Mode',
top:55,
width:300,
height:50,
borderRadius:5,
font:{fontSize:18, fontFamily :'Helvetica', fontWeight:'bold'}
});
TrialButton.addEventListener('click', function() {
var newWindow = Titanium.UI.createWindow({
background : "#fff",
title : "Trial Demo",
url:"nextScreen.js"
});
newWindow.open();
});
작동하지 않음 .... 내 게시물을 업데이트했습니다. – theJava
... 작동하지 않습니다. "nextScreen.js"에 무엇이 있습니까? –
나는이 "잡히지 않는 참조 오류가 발생했습니다 : 모듈이 정의되지 않았습니다."다음 단계가 꽤 분명해 보이지만, nextScreen 모듈을 정의해야합니까? –