当前位置:网站首页>服务器端渲染(SSR)和客户端渲染(CSR)的区别
服务器端渲染(SSR)和客户端渲染(CSR)的区别
2022-07-06 09:29:00 【社会你磊哥,命硬不弯腰】
常听到服务器端渲染和浏览器端渲染这兄弟俩,一直不是很理解,尤其对于我这种没有后台开发经验的小白来说,理解起来异常困难,最近花时间查了很多资料,总算弄明白了,于是整理下,加深记忆。
这边文章是参考下面的文章做的总结
服务器渲染
后端渲染HTML的情况下,浏览器会直接接收到经过服务器计算之后的呈现给用户的最终的HTML字符串,这里的计算就是服务器经过解析存放在服务器端的模板文件来完成的(模板引擎),在这种情况下,浏览器只进行了HTML的解析,以及通过操作系统提供的操纵显示器显示内容的系统调用在显示器上把HTML所代表的图像显示给用户。
前端渲染
简单来说:客户端渲染,就是每个人从服务器获取到的html文件是一样的,再在客户端去通过接口获取数据,拼装成页面展示,
利弊

下图是前后端渲染的顺序图
边栏推荐
- 7-10 punch in strategy
- Chapter 6 datanode
- Li Kou leetcode 280 weekly match
- ~72 horizontal and vertical alignment of text
- Educational Codeforces Round 122 (Rated for Div. 2)
- 视频压缩编码和音频压缩编码基本原理
- Hbuilder x format shortcut key settings
- 字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
- 腾讯面试算法题
- LeetCode 1641. Count the number of Lexicographic vowel strings
猜你喜欢
随机推荐
Solve the problem that intel12 generation core CPU single thread only runs on small cores
ffmpeg命令行使用
Redis standalone startup
I'm "fixing movies" in ByteDance
LeetCode 1637. The widest vertical area between two points without any point
Jedis
How to generate six digit verification code
~86m rabbit practice
Tencent interview algorithm question
我走过最迷的路,是字节跳动程序员的脑回路
~82 style of table
Cmake Express
7-6 sum of combinatorial numbers
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
我走過最迷的路,是字節跳動程序員的腦回路
Native JS realizes the functions of all selection and inverse selection -- Feng Hao's blog
Solr standalone installation
~70 row high
README. txt
Error occurred during initialization of VM Could not reserve enough space for object heap










