码迷,mamicode.com
首页 > 其他好文 > 详细

20150204随笔吧

时间:2015-03-04 14:17:16      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:

<!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(&quot;http://r.ytrss.com/rs/js&quot;)" onclick="alert(&quot;hello&quot;)"></div>
    &quot;&quot;
<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>

20150204随笔吧

标签:

原文地址:http://www.cnblogs.com/king-bj/p/4312984.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!