load.html页面

切换到load.html页面
牛刀小试
获取页面参数
获取Uri
刷新页面
返回上一页
返回上一页(支持回调)
示例代码
//获取页面参数
$("#btnGetPageParams").tap(function(){
    //直接通过当前window的全局对象拿到
    //app.alert(app.pageParams);
    
    //在回调中获取
    app.getPageParams(function(res){
        $("#result").html("返回值类型:"+typeof(res)+"
结果:"+ JSON.stringify(res)); }); }); //获取uri $("#btnGetCurrentUri").tap(function(){ app.getCurrentUri(function(res){ $("#result").html("返回值类型:"+typeof(res)+"
结果:"+ JSON.stringify(res)); }); }); //刷新 $("#btnRefresh").tap(function(){ app.refresh(); }); //返回 $("#btnBackTo").tap(function(){ app.back(); });