$("html").on("click", ".functionBtn[newpage]", function (e) { var self = $(this); var aText = self.attr("title"); var aHref = self.attr("ref"); //var lang = $(settings.lang, parent.document).attr("lang"); var newHref = aHref + "&lang=CN"; alert($("iframe.active").length); debugger; var currentIframe = $("iframe.active", parent.document);//到这句就挂了,求解救 var currentIframeIndex = currentIframe.index(); alert(1); |