jquery 模拟表单提交
//jquery 模拟表单提交
function postCurrent(url,params){
var form = $("<form method='post'></form>");
var input;
form.attr({"action":url});
$.each(params,function (key,value) {
input = $("<input type='hidden'>");
input.attr({"name":key});
input.val(value);
form.append(input);
});
$(document.body).append(form);
form.submit();
}
--end--