以下是不正确的方法: var exp = null;if (exp == null){ alert("is null");} exp 为undefined 时,也会得到与null 相同的结果,虽然null 和undefined 不一样。
確定! 回上一頁