deviceone透明状态栏,启动图实现方法-deviceone学习笔记

透明状态栏

var d1 = require("deviceone");

var app = d1.sm("do_App");

app.on("loaded", function () {

        app.openPage({

    source:"source://view/index.ui",

    statusBarState:"transparent", a

    nimationType: "fade"

        });

});

启动图

var app = sm("do_App");

var times = mm("do_Timer");

times.delay = 5000;//延时5秒后执行

//times.interval = 1000; times.start();

times.on("tick", function() {

app.openPage("source://view/index2.ui");

times.stop();

});

你可能感兴趣的:(deviceone透明状态栏,启动图实现方法-deviceone学习笔记)