javascript判断变量是否为空的方法 代码如下 if (typeof(ndesc)=="undefined") { ndesc="1111!"; } 查看原文:http://newmiracle.cn/?p=696