日期:2014-05-16 浏览次数:20397 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <script> ( function(){ alert("run immediate!") } )(); </script> </HEAD> <BODY> </BODY> </HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>判断浏览器的类型</TITLE> <script> (function isIE(){ if(-[1,]){ alert("这不是IE浏览器!"); }else{ alert("这是IE浏览器!"); } })(); </script> </HEAD> <BODY> </BODY></HTML>