The backend passes base64 object data analysis to solve the problem of Chinese garbled characters

   // 解析base64
    getStr(){
    
    
      let encode = decodeURIComponent(atob(this.code).split('').map(function (c){
    
    
        return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
      }).join(''))
      //遍历每一个字符,(解决中文乱码问题)  .split('').map(function (c){
    
    
      //  return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
      // }).join(''))
      encode = JSON.parse(encode)
    },

/ swiper small dot style penetration when selected /
.swiper-pagination >>> .swiper-pagination-bullet-active{ background-color:#F86B7C }

Guess you like

Origin blog.csdn.net/Jonn1124/article/details/124432082