較容易的方式通過URL內帶參數進行數據傳遞 打開頁面apddList.html中獲取參數 通過解析當前Dialog的herf即可 ...
較容易的方式通過URL內帶參數進行數據傳遞
var url = "apddList.html?c0=" + row.uuid + "&c1=" + row.c0; //URL賦值 var $editDialog = $('<form></form>'); $editDialog.iDialog({ id:'ieManagerDg', title: '【000】', width: dlgWidth, height: dlgHeight, iconCls: 'fa fa-file-text-o', href: url, buttons: [{ text: '關閉', iconCls: 'fa fa-close', btnCls: 'topjui-btn-red', handler: function () { $editDialog.iDialog('close'); } }] });
打開頁面apddList.html中獲取參數
通過解析當前Dialog的herf即可
var params = $('#ieManagerDg').iDialog('options').href.split('?')[1].split('&'); c0 = params[0].split('=')[1]; c1 = params[1].split('=')[1];