日期:2014-05-18  浏览次数:20494 次

JS传值问题 大家帮我一下 星期六还要上班的朋友
window.showModalDialog("http://localhost:1330/ChinaSoftware/DisPage/ASCX/Default2.aspx","",'edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;dialogHeight:200px;dialogWidth:300px'); 

var id=document.getElementById("Label1").Text;

------解决方案--------------------
"http://localhost:1330/ChinaSoftware/DisPage/ASCX/Default2.aspx?ttt="+id
------解决方案--------------------
又一个模糊的问题. 传进还是传出?

传进使用页面参数 ,楼上正解.
传出使用
var aaa = window.showModalDialog("

/* 里面的js */
window.return = "asdasd";
------解决方案--------------------
var id=document.getElementById("Label1").innerHTML;