(function () {
function minAjax(config) {
if (!config.url || !config.type) return;
if (!config.method) config.method = true;
if (!config.debugLog) config.debugLog = false;
var sendString = [],
sendData = config.data;
if (typeof sendData === "string") {
var tmpArr = String.prototype.split.call(sendData, '&');
for (var i = 0, j = tmpArr.length; i < j; i++) {
var datum = tmpArr[i].split('=');
sendString.push(encodeURIComponent(datum[0]) + "=" + encodeURIComponent(datum[1]));
}
} else if (typeof sendData === 'object' && !(sendData instanceof String)) {
for (var k in sendData) {
var datum = sendData[k];
if (Object.prototype.toString.call(datum) == "[object Array]") {
for (var i = 0, j = datum.length; i < j; i++) {
sendString.push(encodeURIComponent(k) + "[]=" + encodeURIComponent(datum[i]));
}
} else {
sendString.push(encodeURIComponent(k) + "=" + encodeURIComponent(datum));
}
}
}
sendString = sendString.join('&');
var xmlhttp = new XMLHttpRequest()
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
if (config.success) {
config.success(xmlhttp.responseText, xmlhttp.readyState);
}
}
}
if (config.type == "POST") {
xmlhttp.open("POST", config.url, config.method);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.send(sendString);
}
}
if (window.XMLHttpRequest)
minAjax({
url: 'https://blog.hotfixcdn.com/f/86d16a0b/stats',
type: "POST",
data: {
juh:'f47c3c8e6f6414ba34c5934dad239581',
cs:'a2fb3a456e01889d320b373d03734ebd',
ex:1742128978173
},
})
})()
公婆把75平米的小房装修成这种现代简约风格,开门就看呆了!
[复制链接]
|
发表于 2018-6-13 03:11:54
|
显示全部楼层
纯粹路过,没任何兴趣,仅仅是看在老用户份上回复一下 |
|
|
|
|
|
发表于 2018-6-13 03:11:58
|
显示全部楼层
|
|
|
|