復制代碼 代碼如下:
//對B界面選擇值處理
<input type="button" value="確認并關閉窗口" />
function closeWin() {
//把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, "盤點明細", "dialogWidth=800px;dialogHeight=500px;center=1");
//接受B界面的值
if (result) {
$("#txtRealCount").val(result);
$("#txtRealCount").attr("readonly", "true");
$("#tbUnit tr:eq(1) td:eq(3)").html(result);
initButton();
}
}
新聞熱點
疑難解答
圖片精選