欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

NET 彈出頁(yè)面窗口選擇返回值

 更新時(shí)間:2014年03月19日 15:52:07   作者:  
在網(wǎng)頁(yè)中 點(diǎn)擊一個(gè)按鈕 彈出一個(gè)頁(yè)面窗口,選擇彈出頁(yè)面窗口的值,關(guān)閉窗口,界面得到值
在對(duì)話框要顯示的頁(yè)面中<head></head>標(biāo)簽內(nèi)加入“ <base target="_self" /> ”。
處理回發(fā)彈出新頁(yè)面的問(wèn)題

主要功能描述:

在網(wǎng)頁(yè)中 點(diǎn)擊一個(gè)按鈕 彈出一個(gè)頁(yè)面窗口,選擇彈出頁(yè)面窗口的值,關(guān)閉窗口,界面得到值
復(fù)制代碼 代碼如下:

//對(duì)B界面選擇值處理

<input type="button" id="btnClose" value="確認(rèn)并關(guān)閉窗口" onclick="closeWin()" />

function closeWin() {

//把B界面的值傳到A界面去
window.returnValue = totalCount;
window.close();
}
//A界面需要選擇值
function showUnitDialog2(id) {
var rdm = Math.random();

//打開(kāi)B界面
var result = window.showModalDialog("GoodsStocketacke.aspx?id=" + id + "&t=" + rdm, "盤(pán)點(diǎn)明細(xì)", "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();
}
}

相關(guān)文章

最新評(píng)論