Javascript-url get parameter big discussion, find out type=iphone&color=white&order=1

Source: Internet
Author: User
1. I click on the Apple tab to display the iphone page,
2. On the iphone page shown, I clicked on the Color Color=white tab, filtered to get the white apple
3. Then I click on the time order, the product will be sorted by the time of publication!

Question How do I append index.php?type=iphone&color=white; to the current Index.php?type=iphone

And then append Order=desc, the result is Index.php?type=iphone&color=white&order=desc

Reply content:

1. I click on the Apple tab to display the iphone page,
2. On the iphone page shown, I clicked on the Color Color=white tab, filtered to get the white apple
3. Then I click on the time order, the product will be sorted by the time of publication!

Question How do I append index.php?type=iphone&color=white; to the current Index.php?type=iphone

And then append Order=desc, the result is Index.php?type=iphone&color=white&order=desc

There is nothing to say about this question.

If you do that, you can send multiple requests, one at a time

Uri.js
The above is the JS URI Library, is specifically used to do the URL operation.

In fact, I thought about the landlord's operation does not need to add it, you regenerate the new URL, because when you click on an action, will certainly record your operation status.
If the landlord must be added, you can first determine the URL of the parameter value, there is a replacement.

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