cookie.js
520 字节
//获取跳转路径
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null)return unescape(r[2]);
return null;
}
function ajaxsend(url, parmas, funsc) {
var baseUrl = 'http://shop.naturalred365.com/';
$.ajax({
type: "POST",
url: baseUrl + url,
data: parmas,
dataType: "json",
success: function(data) {
funsc&&funsc(data)
}
});
}