Home > front end >  The parent. Layer. GetFrameIndex is not a function
The parent. Layer. GetFrameIndex is not a function

Time:10-26

Use layer plug-in, as a result, interface can't shut down, called the parent. Layer. GetFrameIndex is not a function,
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 answer

CodePudding user response:

Did your father page loading layer

CodePudding 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 problem

CodePudding user response:

I drew layui. All. Js under parent will then have two layer layer wrapped in
Need this
 var index=parent. Layer. Layer. GetFrameIndex (window. Name); 
The parent. Layer. The layer. The close (index);
  • Related