var str='kf fVsdfwAVQC/IDdrrr g==' var p=str.replace(/[\s]/g, "+"); console.log(p)得到的结果为:
kf+fVsdfwAVQC/IDdrrr+g==