当前位置:网站首页>静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
2022-07-03 03:17:00 【Johnny.G】
静态网页和动态网页的区别 & WEB1.0和WEB2.0的区别
1、网页资源种类
静态网页资源
动态网页资源
伪静态网页资源(不解释)
1)静态网页资源
静态页面就是正常请求响应信息,发给客户端进行处理,由浏览器进行解析,最后回显页面。期间没有连接数据库,纯粹HTML格式的网页(可以包含图片、JS 、CSS 样式等)。后缀常见是.html、.htm、.xml、.js 、.css等形式。
2)动态网页资源
动态页面就是正常请求响应信息,发给服务端进行处理,由服务端处理完成,将信息返回给客户端,最后生成回显页面。期间连接数据库,后缀通常是.asp、.aspx、.php、.js、.do、.cgi等形式。
2、静态网页和动态网页的区别
①静态页面
后缀常见是.html、.htm、.xml、.js 、.css等形式
处理html、jpg、.gif、.mp4等文件类型
URL地址中不含“?”、“&”等相关符号
通常保存在网站服务器的文件系统上
页面内容固定不变,交换性差,也不能连接数据库,访问的效率比较高
当用户请求页面时,客户端向服务器请求数据,服务器会直接从文件系统返回相关数据,再通过浏览器解析
②动态页面
后缀常见是.asp、.aspx、.php、.js、.do、.cgi等形式
页面内容可以实时变化,交互性强,可以连接数据库,访问的效率比较低
URL地址中含有"?"、“&”等相关符号
不便于被搜索引擎收录
3、Web l.0 & Web 2.0 区别
Web1.0 仅仅是用户通过浏览器获取信息(单向)
Web2.0 则注重交互性,用户既是网站的使用者,也是网站内容的创造者(双向)
4、GET & POST 的区别
1)传送数据量不同
- get可传输数据量较小,不能大于2KB
- post可传输数据量较大,默认不受限制
2)安全性不同
1、get会将提交的数据显示至URL中,安全性较低
2、post与get相反,不会回显数据,安全性较高
边栏推荐
- PAT乙级常用函数用法总结
- File rename
- 程序员新人上午使用 isXxx 形式定义布尔类型,下午就被劝退?
- Compare float with 0
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- New programmers use the isXXX form to define Boolean types in the morning, and are discouraged in the afternoon?
- Update and return document in mongodb - update and return document in mongodb
- Reset or clear NET MemoryStream - Reset or Clear . NET MemoryStream
- Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
- softmax的近似之NCE详解
猜你喜欢
umi 路由拦截(简单粗暴)
I2C subsystem (IV): I2C debug
Docker install redis
Opengauss database development and debugging tool guide
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 05 data input and output
MySQL practice 45 [SQL query and update execution process]
Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
Creation and destruction of function stack frame
VS 2019 配置tensorRT生成engine
idea 加载不了应用市场解决办法(亲测)
随机推荐
Chart. JS multitooltip tag - chart js multiTooltip labels
The idea cannot be loaded, and the market solution can be applied (pro test)
Hi3536C V100R001C02SPC040 交叉编译器安装
敏捷认证(Professional Scrum Master)模拟练习题-2
Sous - système I2C (IV): débogage I2C
About HTTP cache control
力扣------网格中的最小路径代价
el-tree搜索方法使用
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
MySql实战45讲【索引】
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
Solve high and send system Currenttimemillis Caton
【PyG】理解MessagePassing过程,GCN demo详解
Last update time of all sqlserver tables
What happens between entering the URL and displaying the page?
Use of check boxes: select all, deselect all, and select some
Application of derivative in daily question
敏捷认证(Professional Scrum Master)模拟练习题