Close the child window to refresh the parent page when tp3.2 controller returns

My project operations are performed at sub-page pop when I operation succeeds or fails, it must close the current child window, refresh the parent page: 

$ this-> ASSIGN ( 'jumpurl', "JavaScript: window.parent. location.reload (); ");

above this line of code, you can in tp3.2 after $ this-> success () or error () the prompt is displayed, complete close the current child window and refresh the parent page,
and then, if you want to close the current child window and specify the parent page to jump, it can be:

$ this-> ASSIGN ( 'jumpurl', "JavaScript: window.parent.location.assign ( '" U (.' Admin / index '). " ');");

ASSIGN write jump path, and may pass parameters.
I am also a novice, and it was found that the use of these stunning, tp frame and she was returned to perform this js code, I do not quite understand the principle, but with a very convenient time

Guess you like

Origin www.cnblogs.com/yuanshen/p/11126845.html