1.创建form表单提交
jQuery('<form action="' url " method="post">' +
'<input type="text" name="attachment" value="' + attachment + '"/></form>')
.appendTo('body').submit().remove();
2.新窗口打开URL
var window=window.open(url);
注:
//当前窗口window,可进行操作
window.document.body.innerHTML = html;
window.document.forms[0].submit();