10
Window.open และส่งผ่านพารามิเตอร์โดยวิธีการโพสต์
ด้วยวิธี window.open ฉันเปิดไซต์ใหม่พร้อมพารามิเตอร์ซึ่งฉันต้องผ่านโดยวิธีการโพสต์ฉันพบวิธีแก้ปัญหา แต่น่าเสียดายที่มันไม่ได้ผล นี่คือรหัสของฉัน: <script type="text/javascript"> function openWindowWithPost(url,name,keys,values) { var newWindow = window.open(url, name); if (!newWindow) return false; var html = ""; html += "<html><head></head><body><form id='formid' method='post' action='" + url +"'>"; if (keys && values && (keys.length == values.length)) for (var i=0; i < keys.length; i++) html += "<input …
103
javascript