taiyang2014

页面跳转

<script>ca.init(false);
var oB =  ca.tagName('button');
ca.click(oB[1],function(){
ca.newInterface({
url:'register.html',
id:'register'
    })
})
</script>
/**
* 打开新界面
*
* 参数为JSON格式
* url : 打开新页面的url
* id  : 打开新页面的id
* styles :  打开新页面的css 样式  (top bottom width height)  可不设置或者设置为空
* showType : 打开新页面的方式  zoom-fade-out 中心放大
* showTime : 打开新页面所用时间(毫秒) 通常 200 - 400 毫秒之间
*
*/    
 
castapp.newInterface({
        url:'child.html',
        id:'child',
        styles:{
                top:'0px',
                bottom:'',
                width:'',
                height:''
        },
        showType:'zoom-fade-out',
        showTime:200
});

/**
* 关闭当前界面
*/
castapp.closeCurrentInterface();

posted on 2017-08-21 14:41  taiyang2014  阅读(147)  评论(0编辑  收藏  举报

导航