js 窗口互相调用数据

  var globalSupplierIds = [];
  parent.$("body .fr").each(function (e, ee) {
      var el = $(ee).attr("src");
      var openView = (el.indexOf("SaveIncent") > 0 );
      if (openView) {
          iframeEl = $(ee).context.contentWindow;
       
          globalSupplierIds=iframeEl.$("#SupplierIds").text().split(",");
          console.log(globalSupplierIds)
          return false;
      };
 
  });
 
iframeEl.$("#SupplierIds").text(ids);
posted @ 2021-12-02 09:32  酷酷的抖s  阅读(51)  评论(0编辑  收藏  举报