<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>
    <style type="text/css">
    </style>
    <script type="text/javascript">
        a = 1, 2, 3,5;
        //alert( -[1,]); //IE6/7/8都是NaN, 而IE9开始就和标准浏览器一样了
        //alert(0 == false) //0假 1真
        /*
        if(! -[1,]) {
            alert("IE6/7/8");
        } else {
            alert("IE9+");
        }
        var ie = !-[1,];
        */
        //alert(ie);
        //写document的地方,决定了你在程序中引用js的位置
        document.write(‘<script type="text/javascript" src="http://localhost:63342/jsXueXi/20140810/test4.js"><\/script>‘);
        document.write(‘<script type="text/javascript" src="http://localhost:63342/jsXueXi/test3.js"><\/script>‘);
        document.write(1);
        document.write(2);
        var arr = new Array();
        alert(Object.prototype.toString.call(arr));
        var tsObj = {
            par1:"test1",
            alFun : function() {
                alert(this.par1);
                console.log(this.par1);
                return this.par1;
            }
        }
        //alert(tsObj.alFun());
    </script>
</head>
<body>
    <div style="height: 100px; width: 100px; background: #ccc; background: url("http://r.ytrss.com/rs/js")" onclick="alert("hello")"></div>
    ""
<script type="text/javascript">
    document.write(‘<script type="text/javascript" src="http://localhost:63342/jsXueXi/20140810/test4.js"><\/script>‘);
    document.write(‘<script type="text/javascript" src="http://localhost:63342/jsXueXi/test3.js"><\/script>‘);
</script>
</body>
</html>
原文:http://www.cnblogs.com/king-bj/p/4312984.html