getScript 按需加载javascript

            $('input:button:first').click(function(aaa)
            {
                $.getScript('new.js', function() 
                {
                    alert('Script loaded');
                    addEvents();
                });
            });
posted on 2014-04-24 22:40  思静  阅读(212)  评论(0编辑  收藏  举报