function checkIsNull(value){ if(typeof value==‘undefined‘){ return true; } if(value==null){ return true; } if (value.replace(/(^\s+)|(\s+$)/g,"").length ==0) { return true; } return false;}
js 判断字符为空
原文:http://www.cnblogs.com/zgz21/p/5127517.html