今天页面传值的时候,发现头像路径转string以后内容发生了变化编码
转string的时候进行编码code
let info=encodeURIComponent(JSON.stringify(listInfo))string
引用时先进行转码引用
let infoObj=decodeURIComponent(info)co