1.AJAX+PHP的POST中文乱码问题(接收页面接到的是乱码),只需转码即可:
$strYouData = iconv('UTF-8','GBK',$strYouData);
2.JS的空格替换:
strData = strData.replace(/^\s+|\s+$/g,"");