d7bae6fd3f0ca9b3ae73afc681ceeb016cc78031.svn-base 755 B

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