複製程式碼 程式碼如下: var form=$(""); //定義一個form表單form.attr("style","display:none");form.attr("target","");form.attr("method", "post");form.attr("action","exportData");var input1=$("");input1.attr("type","hidden" );input1.attr("name","exportData");input1.attr("value",(new Date()).getMilliseconds());$("body") .append(form);//將表單放置在web中form.append(input1); form.submit();//表單提交 來源:http://www.cnblogs.com/sydeveloper