php - Looking for the principle of JD.com product details page?
欧阳克2017-06-19 09:07:09
0
4
1362
https://item.jd.com/4645290.html
For example, this Honor mobile phone will display different addresses on the URL when clicking on different configurations and different colors, and the product names will change
Does a product have multiple attributes, such as red +16G, red +32, white +16G, white 32G? These four specifications are regarded as four products. They belong to one product. These four products share the same product description. No sharing of prices or inventory.
It’s just a page jump. Although it is not directly linked to
<a>
, in the end it is a URL assigned tolocation.href
:The click event is bound to this p:
The URL is finally spelled out, jump!
Allow me to ramble on. Staticization reduces server pressure and is beneficial to search engines
F12 to see the address data of the new page in the tag! Click to jump directly~
Does a product have multiple attributes, such as red +16G, red +32, white +16G, white 32G? These four specifications are regarded as four products. They belong to one product. These four products share the same product description. No sharing of prices or inventory.
Front-end routing, refer to http://www.tuicool.com/articl...