当前位置:   article > 正文

wex5的跨域AJAX请求_wex5 请求

wex5 请求
define(function(require) {
var MD5 = require("$UI/system/lib/base/md5");
var justep = require("$UI/system/lib/justep");
var obj = {};
return {
fnOfAMD2 : function(url, code, callback, content, Header) {
md5 = new MD5();
var key = "";
var timestamp = (new Date()).valueOf();
var parmaerStr = "key=" + key + "&" + code + "&timestamp=" + timestamp + "";
var parmaerStrs = parmaerStr.split("&");
parmaerStrs.sort();
var postData = {};
var parmaerStr = "";
var firstEqIndex = -1;
for ( var paramStr in parmaerStrs) {
firstEqIndex = parmaerStrs[paramStr].indexOf("=");
eval("postData." + parmaerStrs[paramStr].substring(0, firstEqIndex) + "=\"" + parmaerStrs[paramStr].substring(firstEqIndex
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/257291?site
推荐阅读
相关标签
  

闽ICP备14008679号