/** * Created by silent on 14-1-26. */ var publicResourceLoader=null; (function(){ var scripts=document.querySelectorAll('script[type="text/javascript"][src]'),matches,resourceUrl=''; for(var i=0;i') }); }, loadScript:function(){ var that=this; this.scripts.forEach(function(scriptlink){ document.write('') }); }, getPath:function(){ return resourceUrl; } }; publicResourceLoader =new PublicResourceLoader({ css:[resourceUrl+'static/css/index.css?version='+Math.random()], scripts:[ resourceUrl+'static/js/jquery.min.js', resourceUrl+'static/js/server.js?version='+Math.random(), resourceUrl+'static/js/adSceneInGames.js?version='+Math.random(), resourceUrl+'static/js/game_index.js?version='+Math.random() ] }); }());