zoukankan      html  css  js  c++  java
  • 20150204随笔吧

    <!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; 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>

  • 相关阅读:
    python 文件目录/方法
    python文件
    python模块
    python数据结构
    python函数
    python迭代器和生成器
    python循环语句
    python控制语句 if
    python数字
    个人课程总结
  • 原文地址:https://www.cnblogs.com/king-bj/p/4312984.html
Copyright © 2011-2022 走看看