onReady() {
    let buttons = '按钮'
    //buttons = '\ue670' 如果是字体图标需要引入ttf文件

    // #ifdef APP-PLUS
    var currentWebview = this.$mp.page.$getAppWebview();
    console.log(currentWebview)
    var tn = currentWebview.getStyle().titleNView;   
    tn.buttons[0].text = buttons;     //[0] 按钮的下标
    currentWebview.setStyle({  
    titleNView: tn  
    });
// #endif
}

  

相关文章:

  • 2022-12-23
  • 2022-01-21
  • 2021-10-10
  • 2021-08-13
  • 2022-12-23
  • 2021-04-13
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-12-03
  • 2021-10-08
  • 2022-12-23
相关资源
相似解决方案