zoukankan      html  css  js  c++  java
  • 第一个js库文件

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>js lever</title>

    <script type="text/javascript">
        var testModult =(function(){
            var counter = 0;
            return {
                        incrementCounter:function()
                        {
                            return ++counter;
                        },
                        resetCounter:function(){
                            console.log("counter value prior to reset: "+counter);
                            counter=0;
                        }
                    };
        })();
        testModult.incrementCounter();
            testModult.resetCounter();
    </script>
    </head>
    <body>
    </body>
    </html>
  • 相关阅读:
    mysql 索引
    redis持久化
    redis发布订阅
    django 信号
    paramiko模块
    23种设计模式python实现
    几种浏览器存储数据的方式
    关于传参
    对字符串里的四则运算进行计算2020/10/12
    动手动脑2020/10/9
  • 原文地址:https://www.cnblogs.com/zhangwei595806165/p/3343043.html
Copyright © 2011-2022 走看看