uni-app dynamically modify the title bar buttons name

the onReady () { 
    the let Buttons = 'button' 
    // Buttons = '\ ue670' icon need to be introduced if the font file ttf 

    // #ifdef the APP-PLUS 
    var = currentWebview the this mp.page $ $ getAppWebview ();.. 
    Console. log (currentWebview) 
    . TN = currentWebview.getStyle var () titleNView;    
    tn.buttons [0] = buttons .text; // [0] button subscript 
    currentWebview.setStyle ({   
    titleNView: TN   
    }); 
// #endif 
}

  

Guess you like

Origin www.cnblogs.com/lymconch/p/11286823.html