js判断字符是否为空的方法:
//判断字符是否为空的方法function isEmpty(obj){ ???if(typeof obj == "undefined" || obj == null || obj == ""){ ???????return true; ???}else{ ???????return false; ???}}
使用示例:
if (!isEmpty(value)) { ???alert(value);}
js判断字符是否为空的方法
原文地址:http://www.cnblogs.com/shuilangyizu/p/7744111.html