例: //前臺頁面事件處理模塊var EventOperation = { Refresh: function (data_id) { var a = (window.top); var ele = a.document.querySelectorAll('[data-id="' + data_id ...
例:
//前臺頁面事件處理模塊
var EventOperation = {
Refresh: function (data_id) {
var a = (window.top);
var ele = a.document.querySelectorAll('[data-id="' + data_id + '"]')[1];
ele.contentWindow.document.getElementById("btnSelect").click();
}
}
使用:
//刷新
EventOperation.Refresh("/StockManage/PurchaseList");
//關閉標簽 自定義屬性data-id 為(/StockManage/InsertPurEdit)
$(".J_menuTab[data-id='/StockManage/InsertPurEdit']", window.top.document).find(".fa.fa-times-circle").click();
//關閉當前標簽
$(".J_menuTab.active", window.top.document).find(".fa.fa-times-circle").click();
註:data-id ifram是自定義屬性