JS 中如何判断 undefined
if (typeof(reValue) == "undefined") {alert("undefined");
}
typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"
在页面加载完后 用js或jquery加入新的元素,新的元素有点击事件,但还页面还没有提交
$("p").click(function(){}) 这种的点击事件是无效的
需要用
$("p").bind("click",function(){}) jquery 2.0版本以下
$(document).on("click","p",function(){}) jquery 2.0版本以上