thinkphp the JavaScript code in the controller cannot perform the workaround _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.