1.jquery的使用经验1-出现undefined的处理解决思路: 使用typeof()方法去吧undefined处理成字符串的“undefined”,在进行比较用法: if(typeof($("#id").val()) == "undefined"){ //你想要处理的业务 }