marsguo
marsguo
  • 发布:2016-07-13 11:05
  • 更新:2016-07-13 11:29
  • 阅读:4109

plus.nativeUI.showWaiting( title, options )这个options具体怎么用

分类:MUI

plus.nativeUI.showWaiting( title, options ) 我添加了几个一两个参数,都没有效果。请问具体应该怎么用?
var op = '{"width":"100px","height":"200px"}';
var w = null;
try {
w = plus.nativeUI.showWaiting( "等待中..." ,JSON.parse(op));
catch {}

这是其中的代码片段

2016-07-13 11:05 负责人:无 分享
已邀请:
赵梦欢

赵梦欢 - 专注前端,乐于分享!

mui.plusReady(function(){  
    var opt = '{"width":"100px","height":"200px"}';  
    plus.nativeUI.showWaiting( "等待中..." ,JSON.parse(opt));  
})

经测试可以啊,有啥问题呢?

  • marsguo (作者)

    我把 try catch 取掉居然就可以了 真尼玛神奇。还有添加color,"color":"red","background":"blue" 没用 这样写错吗?

    2016-07-13 11:39

  • 赵梦欢

    回复 marsguo:http://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.WaitingOptions

    2016-07-13 11:45

lhyh

lhyh - 目前就职成都

大庆?我的也没问题……你人品吧,看看你是不是没有初始化

                var wait = plus.nativeUI.showWaiting("加载中...", {  
                        height:"300px",  
                        width:"150px",  
                        style: "black",  
                        color: "#1d8079",  
                        loading: {  
                            display: "inline"  
                        }  
                    });

该问题目前已经被锁定, 无法添加新回复