第一个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 = ;
        return {
                    incrementCounter:function()
                    {
                        return ++counter;
                    },
                    resetCounter:function(){
                        console.log("counter value prior to reset: "+counter);
                        counter=;
                    }
                };
    })();
    testModult.incrementCounter();
        testModult.resetCounter();
</script>
</head>
<body>
</body>
</html>
上一篇:[转] Web 前端优化最佳实践之 Mobile(iPhone) 篇


下一篇:算法(Algorithm)是什么?