三枚紫橄榄
三枚紫橄榄
  • 发布:2015-05-07 17:34
  • 更新:2015-05-07 17:34
  • 阅读:3497

【报Bug】webview的URL为空时webview.getURL()返回值是字符串null, 而不是关键字null

分类:HTML5+

webview的URL为空时webview.getURL()返回值是字符串null, 而非null对象.

例如:

        webview1 = plus.webview.create(null, 'page_', viewStyle, {mode: '1'});  
            webview2 = plus.webview.create('', 'page_2', viewStyle, {mode: '2'});  

                console.log(typeof webview1.getURL());  
                console.log(typeof webview2.getURL());

控制台输出两个都是string

2015-05-07 17:34 负责人:无 分享
已邀请:

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