If the page is static, how does html receive parameters? HTML
If the page is static, how does html receive parameters? No clue .. Please advise
Reply to discussion (solution)
Can static pages receive parameters?
Can static pages receive parameters? Brother, your brick factory. hurry up. all posts will sink.
What you want to say is static and dynamic. you can use javascirpt!
The static address can contain parameters;
Like thred-38903-uid.html
There is a lot of information in it.
The performance optimization and availability should be properly balanced, rather than simply pursuing performance optimization. Otherwise, the code may deteriorate.
There is no unified static method. Generally, the URL is rewritten. For example:
Http://www.xxx.com/topic.php? Id = 390506260
Change
Http://www.xxx.com/topics/390506260
Yes
Http://www.xxx.com/topics/390506260.html
In this way, no parameters are required. Html pages are generated using scripts in the background. You can generate one request and access multiple requests.
Pages that contain a large amount of real-time data or are difficult to separate real-time data are difficult to be static. static pages are not recommended. This reduces the readability of the code.
If you want to pass the parameter, it is not really static.
There are three methods:
First:
Http://www.xxx.com/topic.php? Id = 390506260
Change
Http://www.xxx.com/topics/390506260
Second:
Http://www.xxx.com/topic.html? Id = 390506260
Converting with js is not safe
Third:
Http://www.xxx.com/topic.html? Id = 390506260
Use apache to write the rules in. htaccess.