Your question is whether the front-end is implemented or the server is implemented. I guess it is the front-end implementation.
Then this query condition can be used to filter table data directly usingget方式,比如用户点击手表,JavaScript中监听所有类别的点击事件,然后在当前urlfollowed by the corresponding field name and field value ofwatchto jump.
Similarly for the price, the operation logic when clicking the OK button is the same as clicking theWatch.
Taobao does not combine various filtering conditions at once and then query. Instead, click on a certain filtering condition to perform a filter refresh.
Generally, parameters are passed through get method for filtering. After entering the price, there should be a confirm button. When clicking the confirm button, use js to get the current link, and then assemble the price link to jump.
Your question is a bit strange. There is essentially no difference between clicking and typing. They are both part of the form. As for how to check the database, you need to formulate sql according to your table structure. However, to achieve this function, you generally need to use a search engine. It is not very good to directly check the database, and it is too stressful.
Your question is whether the front-end is implemented or the server is implemented. I guess it is the front-end implementation.
Then this query condition can be used to filter table data directly using
get
方式,比如用户点击手表,JavaScript
中监听所有类别的点击事件,然后在当前url
followed by the corresponding field name and field value ofwatchto jump.Similarly for the price, the operation logic when clicking the OK button is the same as clicking theWatch.
Taobao does not combine various filtering conditions at once and then query. Instead, click on a certain filtering condition to perform a filter refresh.
Generally, parameters are passed through get method for filtering. After entering the price, there should be a confirm button. When clicking the confirm button, use js to get the current link, and then assemble the price link to jump.
Use sql to combine where conditions to query the database, and then return the queried data to the front end
Your question is a bit strange. There is essentially no difference between clicking and typing. They are both part of the form.
As for how to check the database, you need to formulate sql according to your table structure.
However, to achieve this function, you generally need to use a search engine. It is not very good to directly check the database, and it is too stressful.