网上的方法试了很多 有的只在h5生效 APP不生效 绝绝子直接上兼容这两种的代码
// #ifdef H5
document.getElementsByClassName('uni-btn-icon')[1].innerText = '';
// #endif
// #ifdef APP-PLUS
var webView = this.$scope.$getAppWebview();
webView.setTitleNViewButtonStyle(0, {
text: '',
});
// #endif
撒花! 赶快试试吧 !
作者:微微一笑绝绝子
出处:https://www.cnblogs.com/wwyxjjz/p/16665844.html
本博客文章均为作者原创,转载请注明作者和原文链接。