最近在研究mootools,不过很奇怪什么是模块化写法,具体的疑问就是
(
    function PageInit() 
    {
        if (navigator.userAgent.indexOf("MSIE") > 0)
        {
            document.attachEvent('onload', function() {PageRegistedEvent();})
        } 
        else
        {
            document.addEventListener('onload', function() {PageRegistedEvent(); })
        }
        function PageRegistedEvent() 
        {
            if (navigator.userAgent.indexOf("MSIE") > 0)
            {
                document.getElementById('comId').attachEvent('onblur', function() {}); 
            } 
            else 
            {
                document.getElementById('comId').addEventListener('onblur',function() {})
            }
         }
    }
)(); 这里的function前面合后面为什么加上这()();
这表示什么?