| | |
| | | var tenantIDObj = window.getEnclocal("tenantID"); |
| | | var userObj = window.getEnclocal("userName"); |
| | | var userObj= {"userName":"YK"}; |
| | | document.cookie = "name = value; path=/"; |
| | | document.cookie = "name = value; path=/"; |
| | | document.cookie = "openId = test; path = /publish"; |
| | | |
| | | //设置AJAX的全局默认选项 |
| | | $.ajaxSetup({ |
| | | aysnc: true, // 默认异步加载 |
| | |
| | | "Access-Control-Allow-Origin":"*", |
| | | "Access-Control-Allow-Methods":"*", |
| | | "Access-Control-Allow-Headers":"*" , |
| | | "withCredentials":"true" |
| | | "withCredentials":"true", |
| | | |
| | | }, |
| | | beforeSend: function (a, b, c) { |
| | | ajaxStar(); |
| | |
| | | Object.keys(sendData).map((k) => { |
| | | if (data.hasOwnProperty(k)) { |
| | | try{ |
| | | if(data[k] == ""||data[k]==null||data[k]==undefined){ |
| | | sendData[k]=""; |
| | | }else{ |
| | | sendData[k]=encryptByDES(data[k],""); |
| | | } |
| | | }catch(error){ |
| | | } |
| | | } |