870a9a7dea6f06a45e108a0e3d6d755bb4c98cbe.svn-base 766 B

123456789101112131415161718192021222324252627
  1. var OfficeUtil={};
  2. OfficeUtil.getParam=function(){
  3. var params=window.location.search;
  4. debugger;
  5. params=params.substring(params.indexOf("?", 0)+1,params.length);
  6. var base=new Base64();
  7. params=base.decode(params);
  8. params=decodeURIComponent(params);
  9. var arrParam=params.split("&&");
  10. var map={};
  11. for(var index=0,len=arrParam.length;index<len;index++){
  12. var temp=arrParam[index].split("=");
  13. map[temp[0]]=temp[1];
  14. }
  15. return map;
  16. };
  17. OfficeUtil.openWindow=function(url,param,pageName){
  18. $(window.document).append('<script type="text/javascript" src="/nwyj/scripts/base64.js"></script>');
  19. var params={path:param};
  20. params=$.param(params);
  21. var base=new Base64();
  22. param=base.encode(params);
  23. url=url+"?"+$.param(params);
  24. window.open(url, pageName,"","");
  25. };