简体   繁体   English

如何使用Titanium Studio在iPhone和Android中将页面导航到另一页面

[英]how to navigate one page to another in iphone and android using titanium studio

I am fresher in titanium for mac os x. 对于Mac OS X,我的钛更新鲜。

I am using titanium first time and do not have any knowledge on js pages and action event's 我是第一次使用Titan,对js页面和动作事件没有任何了解

I am setup titanium and add button. 我设置钛并添加按钮。 On button click i need to navigate to another js page 在按钮上单击,我需要导航到另一个js页面

and this project will run into iPhone and android device 该项目将运行到iPhone和android设备

如果您是新手,那么厨具是学习钛的最佳实践。

in app.js file write 在app.js文件中写入

var win = Ti.UI.createWindow({
    backgroundColor : 'red'
});
win.open();
var button = Ti.UI.createButton({
    title : 'click me to open new window'
});
win.add(button);

button.addEventListener('click', function(e){
    var newWindow = Ti.UI.createWindow({
        url : 'newWindow.js',
        backgroundColor : 'white'
    });
    newWindow.open();
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在 Android Studio 中将一个页面导航到另一个页面时,如何从 WebView 中删除导航? - How to remove Nav from WebView, when I Navigate one page to another page in Android Studio? 如何在android phonegap中将一个页面导航到另一个页面? - How to navigate one page to another page in android phonegap? 如何使用 React Native 将一个页面导航到另一个页面? - How to navigate one page to another page using React Native? 如何在android中导航到另一个页面? - How to navigate to another page in android? 无法在Android中从一页导航到另一页 - Unable to navigate from one page to another in android [ViewPager-如何使用按钮从一页导航到另一页? - [ViewPager - How to Navigate from one page to another using a button? Titanium Studio登录页面(Android) - Titanium Studio login page (Android) 如何在选项卡栏内从一个视图导航到另一个视图(例如iPhone)-Android应用 - How to navigate from one view to another view like iphone inside tab bar - Android apps 如何使用Titanium Studio在Android上创建返回上一页的后退按钮? - How to create a back button to previous page on Android with Titanium Studio? 如何使用Titanium Appcelerator获取Android / iPhone设备的唯一ID? - How to get Android/iPhone device unique ID using titanium appcelerator?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM