//把B界面的值傳到A界面去 window.returnValue = totalCount; window.close(); } //A界面需要選擇值 function showUnitDialog2(id) { var rdm = Math.random();
//打開B界面 var result = window.showModalDialog("GoodsStocketacke.aspx?id=" + id + "t=" + rdm, "盤點明細(xì)", "dialogWidth=800px;dialogHeight=500px;center=1");