thinkphp Tutorial in the controller of the Web page effect code does not implement the workaround
Take the term "exit".
My "Exit System" link is written to the left frame, which is generated dynamically with JS. In other words, the target cannot be specified by the link.
View sourceprint?1 $this->assign (' Jumpurl ', __url__. ' /login ');
$this->success ("Logout Successful! ");
In this case, the page to jump is displayed in the right frame.
Write the JS code inside the URL.
I commented out the two lines of code. Directly with
View sourceprint?1 echo "";
This is not possible, on the one hand the URL can not be used __app__ these constants. On the other hand, the final implementation of the result is actually put ';
That's all.
http://www.bkjia.com/PHPjc/632329.html www.bkjia.com true http://www.bkjia.com/PHPjc/632329.html techarticle thinkphp Tutorial In the controller of the Web page effect code can not execute the solution to take the exit of this one. My exit System link is written to the left frame, with JS dynamic generation ...