// 点击选择{$popName} function showKeyAccessory{$popCount}(){ $.ligerDialog.open({ allowClose: false, height: 500, url: '{$popUrl}', width: 1000, name:'choseKey{$popCount}', title:'对话框(确认或者双击带回)', isResize:true, buttons: [{ text: '确认', onclick: function (item, dialog){ var arrM = new Array(); // 获取子页面的参数 arrM=document.getElementById('choseKey{$popCount}').contentWindow.addKey(); // 父页面动态插入行 for(var i in arrM){ var arr = new Array(); arr = arrM[i].split(","); var tr = $(""); // 判断是否重复 if(isExitAccessoryType(arr[0],'keyAccessoryTable{$popCount}')=="false"){ $.ligerDialog.warn("{$popName}"+arr[0]+":"+arr[1]+"已选中!","提示"); continue; } $("").text(arr[0]).appendTo(tr); {$popText} $("").html( ' ' +' 【删除】' ).appendTo(tr); $("#keyAccessoryTable{$popCount}").append(tr); } dialog.close(); } }, { text: '关闭', onclick: function (item, dialog){dialog.close();}}] }); }