123456789101112131415161718192021222324252627 |
- var OfficeUtil={};
- OfficeUtil.getParam=function(){
- var params=window.location.search;
- debugger;
- params=params.substring(params.indexOf("?", 0)+1,params.length);
- var base=new Base64();
- params=base.decode(params);
- params=decodeURIComponent(params);
- var arrParam=params.split("&&");
- var map={};
- for(var index=0,len=arrParam.length;index<len;index++){
- var temp=arrParam[index].split("=");
- map[temp[0]]=temp[1];
- }
- return map;
- };
- OfficeUtil.openWindow=function(url,param,pageName){
- $(window.document).append('<script type="text/javascript" src="/nwyj/scripts/base64.js"></script>');
- var params={path:param};
- params=$.param(params);
- var base=new Base64();
- param=base.encode(params);
- url=url+"?"+$.param(params);
- window.open(url, pageName,"","");
- };
|