window.open以post方式传递参数示例代码_javascript技巧
来源:懂视网
责编:小采
时间:2020-11-27 21:20:13
window.open以post方式传递参数示例代码_javascript技巧
window.open以post方式传递参数示例代码_javascript技巧: 代码如下: //打开新页面并利用post方式传递参数 function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues) { var newWindow = window.open(postAddress,opentype); if (!newWind
导读window.open以post方式传递参数示例代码_javascript技巧: 代码如下: //打开新页面并利用post方式传递参数 function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues) { var newWindow = window.open(postAddress,opentype); if (!newWind

代码如下:
//打开新页面并利用post方式传递参数
function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues)
{
var newWindow = window.open(postAddress,opentype);
if (!newWindow)
{
return false;
}
var postDataHtml="
";
postDataHtml = postDataHtml + "
window.open以post方式传递参数示例代码_javascript技巧
window.open以post方式传递参数示例代码_javascript技巧: 代码如下: //打开新页面并利用post方式传递参数 function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues) { var newWindow = window.open(postAddress,opentype); if (!newWind