javascript-thinkphp page Jump Problem

Source: Internet
Author: User
1. $this->success (' New success ', ' user/list '); This is the manual of the writing, but in fact, as if not, jump will be in the current URL after the addition of user/list, do not know if I used the pseudo-static reason,
2. Then I write $this->success (' new Success ', U (' user/list ')), can achieve normal page jump, but for example, I did delete operation to jump to the list page, the previously deleted entries are still in, is the reason for the cache. It won't be refreshed once.

Above two questions, hope answer

Reply content:

1. $this->success (' New success ', ' user/list '); This is the manual of the writing, but in fact, as if not, jump will be in the current URL after the addition of user/list, do not know if I used the pseudo-static reason,
2. Then I write $this->success (' new Success ', U (' user/list ')), can achieve normal page jump, but for example, I did delete operation to jump to the list page, the previously deleted entries are still in, is the reason for the cache. It won't be refreshed once.

Above two questions, hope answer

  1. It has nothing to do with your pseudo-static, because you only wrote 2 layers; So I didn't know you were in that module; Let's take the home module as an example; you want to jump home/user/list.
    The correct is $this->success (' new success ', '/home/user/list '); but it is not recommended; the correct posture is to use the U function $this->success (' new Success ', U (' home/user/list ' ));

  2. If you use $this->error (); It does appear that before you say the deleted entries are still in;
    Under normal circumstances $this->success () will not appear what you say, if it is, it may be a cache;

  • 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.