使用 正则替换,再用rich-text解析 res.data= res.data.replace(/ /g, '\xa0'); res.data= res.data.replace(/ /g, '\xa0');