本文介绍了分页还是单页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过很多电影站点,每个电影站点都有单独的页面.例如,"Pirates Bay"电影的"Pirates-bay.html","Live Free Die Hard"的"Live-free-die-hard.html"移动等.
另一方面,也可以通过仅创建一个页面(通过POST方法将movieid发送至该页面)来显示该电影,从而实现此目的.例如,我们创建一个页面名称"movie.php",该名称将传递给movieid"movie.php?movieid = 112",并且该页面将显示电影.

但我想知道
1.哪种方法更好,为什么?
2.如何动态创建单独的电影页面.

I have seen so many movies sites that have a separate page for each movie. For Example "Pirates-bay.html" for "Pirates Bay" Movie, "Live-free-die-hard.html" for "Live Free Die Hard" Move etc.
On the other hand this purpose can also be achieved by creating only one page to which we send the movieid by POST Method and that Page shows the concerned movie. For Example We Create a page name "movie.php" that is passed the movieid "movie.php?movieid=112" and this page shows the movie.

But I want to know that
1. which one of the method is better, and why.
2. How can I Create a separate movie page dynamically.

has Some one the answers of my question?

推荐答案



这篇关于分页还是单页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:22