Chinaunix

标题: url传值问题 [打印本页]

作者: yncjxnc    时间: 2008-01-07 15:16
标题: url传值问题
function gotoXLS(){
  var str = document.dkForm.mc.value+'|'+document.dkForm.xh.value;
   alert("x_x/exportDK.do?"+str);
   window.open("x_x/exportDK.do?"+str,'','');
}

str为什么不能得到表单的信息通过url传到另一个action里?
作者: SCys    时间: 2008-01-13 13:08
这个怎么行?
?valueName=value&valueName=value
看看这样行不

  1. function gotoXLS(){
  2.   var str = "mc="+ document.dkForm.mc.value+'|xh='+document.dkForm.xh.value;
  3.    alert("x_x/exportDK.do?"+str);
  4.    window.open("x_x/exportDK.do?"+str,'','');
  5. }
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2