js判断字符串不为空

function isNotNull(exp) {
              if (typeof (exp) == "undefined" || exp == "") {
                  return false;
              }
              return true;
          }

猜你喜欢

转载自563432906.iteye.com/blog/2279478