php - Looking for the principle of JD.com product details page?
欧阳克2017-06-19 09:07:09
0
4
1214
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:![](http://img.php.cn/upload/image/000/000/000/a79db872e0903ca9af5ba6a693f30535-0.png)
The URL is finally spelled out, jump!![](http://img.php.cn/upload/image/000/000/000/427c9b38ccff35580b42e4a0656ccc99-5.png)
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...