1. 程式人生 > >使用連結將引數傳遞到頁面且引數不顯示

使用連結將引數傳遞到頁面且引數不顯示

    var qrcode = obj.jsonObject;
             document.write("<form action=<%=basePath%>appointment/appointment_qrcord_add.action method=post name=formx1 style='display:none'>");
document.write("<input type=hidden name=qrcode value='"+qrcode+"'");
document.write("</form>");
document.formx1.submit();
}