//提交表单
function submitFormWithData (url, data) {
var form = document.createElement('form');
form.method = 'post';
form.action = url;
form.target = '_blank';
var input = document.createElement('input');
input.type = 'hidden';
input.name = 'jsonRequestData';
input.value = data; //console.log(data);
form.appendChild(input);
form.submit();
}
网友评论