js document创建form post 提交
var form = document.createElement('form'); form.action = 'xxxx.action'; form.method = 'post'; form.style.display = 'none'; var input = document.createElement('input'); input.name = 'user'; input.value = xxx; form.appendChild(input); document.body.appendChild(form); form.submit(); return form;