unicode空格字符串变换

unicode空格字符串转换function filterSpace(str){str escape(str)var txt str.replace(/%A0/g, %20

unicode空格字符串转换

function filterSpace(str){str = escape(str);var txt = str.replace(/%A0/g, "%20");//将Unicode编码为A0的空格转换为20的spacereturn unescape(txt);}