//转换字符串,undefined,null等转化为"" function praseStrEmpty(str){ if(!str || str=="undefined" || str=="null"){ return ""; } return str; }