日期:2014-05-16  浏览次数:20292 次

js里面 0 =='' 0 == false

js里面 ? 0 =='' ? 0 == false

?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		alert(0 == '');
		alert(0 == false);
	</script>
</body>
</html>
jquery ie6  submit不能提交
$('#submitA').onclick = function(){
setTimeout(function(){$('formId').submit();},0);
}