Calls the method is as follows:
The function f_close () {
Var index=window. The parent. Layer. GetFrameIndex (window. Name);
The parent. Layer. The close (index);
}
For help, urgent urgent urgent...
CodePudding user response:
Is not a function,Check the js reference sequence,
Carefully debugging,
CodePudding user response:
Is question is too simple, the great god didn't bother to answerCodePudding user response:
Did your father page loading layerCodePudding user response:
If (the parent layer) {
Var index=window. The parent. Layer. GetFrameIndex (window. Name);
The parent. Layer. The close (index);
}
Premise, determine the page introduces layer. Js
CodePudding user response:
To solve it now, I also encountered this problemCodePudding user response:
I drew layui. All. Js under parent will then have two layer layer wrapped inNeed this
var index=parent. Layer. Layer. GetFrameIndex (window. Name);
The parent. Layer. The layer. The close (index);