博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
第一个js库文件
阅读量:6897 次
发布时间:2019-06-27

本文共 438 字,大约阅读时间需要 1 分钟。

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

转载地址:http://bzddl.baihongyu.com/

你可能感兴趣的文章
ECSHOP增加自动更新缓存的功能
查看>>
英文Ubantu系统安装中文输入法
查看>>
神医扁鹊
查看>>
SharePoint “File not found” 错误
查看>>
怎样看K线图(实图详解)
查看>>
JSON 转javabean 利器
查看>>
基于W5500+Yeelink的远程灯光控制设计
查看>>
Notes中几个处理多值域的通用函数
查看>>
量化生产力Quantifying Productivity
查看>>
趣文:我是一个线程
查看>>
iOS - UIAlertView
查看>>
【资料下载区】【iCore3相关代码、资料下载地址】更新日期2017/06/28
查看>>
短信发送的流程,硬编码在了服务方法里面,优化方案
查看>>
tcpdump
查看>>
maven的pom文件中配置测试用例
查看>>
Swift 方法
查看>>
angularjs等号运算
查看>>
LeetCode: Symmetric Tree 解题报告
查看>>
C# 线程手册 第五章 扩展多线程应用程序 CLR 和 线程
查看>>
html a name href
查看>>