A little bit of every day vue learning framework - uni-app Previous modify parameters

 

Method a: Use micro-channel provided getCurrentPages () to achieve

// update a data 
getPrevData () {
     var Pages = getCurrentPages ();
     var currPage = Pages [pages.length -. 1];   // current page 
    var prevpage = Pages [pages.length - 2];   // the a page 
    prevpage. vm.aaa $ = 'AAAAA' // H5 
    prevPage.aaa = 'AAAAA' // applet 
    prevpage. vm.aaa $ = 'AAAAA' 
},
    
    

 

Method two: through the center of the file with the $ emit (), $ on () to achieve

Portal 

Guess you like

Origin www.cnblogs.com/cap-rq/p/11404119.html