小牛牛
小牛牛
  • 发布:2017-01-27 15:21
  • 更新:2017-02-24 18:41
  • 阅读:1258

no method 'getNavigationbar'

分类:MUI
mui

_self = plus.webview.currentWebview();
var titleView = _self.getNavigationbar();


在安卓手机调试,提示  
 Uncaught TypeError: Object #<n> has no method 'getNavigationbar' at index.html:565
2017-01-27 15:21 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

  1. 确保是8.0的alpha版,下载地址在这里:http://ask.dcloud.net.cn/question/27999
  2. 确保在plus ready后使用
  3. 首页的natigationbar需要在manifest里配置
  4. 对比下hello mui示例里的代码写法
z***@qq.com

z***@qq.com

难怪,我在文档中没有找到这个方法。

  • z***@qq.com

    在manifest.json中配置的:

    "plus": {

    "launchwebview": {

    "navigationbar": {

    "backgroundcolor": "#f7f7f7",

    "titletext": "首页",

    "titlecolor": "#000000"

    }

    }

    2017-02-24 18:46

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