Jquery简单闭包

<html>

<body>

<script src="Js/Index.js"></script>

<script type="text/javascript">

        $(function () {

      index.init();

 })

    </script>

</body>

</html>

 

 

var index = (function () {
 //加载页面事件
    var _initPageEvent = function () {
}
  return {
        init: function () {
                _initPageEvent();
            }
        }
})();
posted @ 2019-07-18 18:03  风吹云东星不动  阅读(138)  评论(0编辑  收藏  举报