javascript可以在两个页之间传递二维数组吗? 笨办法,把数组变成字符串,然后在解析.如200,test,hwhw^300,test,hehe 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <BODY BGCOLOR="#FFFFFF"><input type="button" name="b1" value="test" onclick="test();"></BODY><script>function test(){ var arrSource = new Array(); arrSource[0] = new Array(); arrSource[0][0] = 'abc'; arrSource[0][1] = 'def'; var arr = showModalDialog("test.html", arrSource, "dialogWidth:25.5em; dialogHeight:15.5em; status:0");}</script>下面是test.html<BODY BGCOLOR="#FFFFFF">第一个:<input type="text" name="t1"><br>第二个:<input type="text" name="t2"></BODY><script language="javascript">arr=window.dialogArguments ;document.all["t1"].value = arr[0][0] ;document.all["t2"].value = arr[0][1] ;</script> 利用window.open(),就可以了window.opener.ArrayName[][]var s = window.open();s.ArrayName[][];或者利用frame webqq 的效果怎么实现的? lostfocus 事件后不能触发 click 事件 诂估计会一点JS就能解决这问题.帮个忙吧. 动态数据存数据 求教正则表达式,急!!!! 如何在同一个页面,在一个td里, 点击 这个td里面的字如 "换色" 可以把这个td 的bgcolor换成另外一种color呀 同名表单的检测问题,在线等 如何获取SELECT对象在页面中的绝对位置? cookie的小问题 如何取得客户端的系统目录 SVG元素 关于打印页面指定位置的问题
<input type="button" name="b1" value="test" onclick="test();">
</BODY>
<script>
function test(){
var arrSource = new Array();
arrSource[0] = new Array();
arrSource[0][0] = 'abc'; arrSource[0][1] = 'def';
var arr = showModalDialog("test.html", arrSource, "dialogWidth:25.5em; dialogHeight:15.5em; status:0");
}
</script>
下面是test.html
<BODY BGCOLOR="#FFFFFF">
第一个:<input type="text" name="t1"><br>
第二个:<input type="text" name="t2">
</BODY>
<script language="javascript">
arr=window.dialogArguments ;
document.all["t1"].value = arr[0][0] ;
document.all["t2"].value = arr[0][1] ;</script>