js 判断是否为空一般判断为空有 null值、undefined值与NaN值判断undefined:var tmp = undefinedif (typeof(tmp) == "undefined"){ alert("u2023-02-27JavaScript170