js 判断变量是否为undefined 2018-08-26 本文已影响5人 fuzihuan if(typeof(value) == "undefined"){ alert("undefined"); }