gpt4 book ai didi

javascript - 网络数据如何显示在网络浏览器中?

转载 作者:行者123 更新时间:2023-11-28 03:54:09 25 4
gpt4 key购买 nike

我之前从 Mozilla 的网站上读到这篇文章,我对客户端代码的工作原理有疑问。

You might also hear the terms server-side and client-side code, specially in the context of web development. Client-side code is code that is run on the user's computer — when a web page is viewed, the page's client-side code is downloaded, then run and displayed by the browser. In this JavaScript module we are explicitly talking about client-side JavaScript.

当代码被“下载”并被浏览器运行和显示时,代码下载到哪里了?它是临时下载或存储在用户计算机上的,还是永久的?

最佳答案

文件被下载并存储在缓存中并显示。这些文件是 html、css、JS、图像等。服务器端是 php 等这些不下载它们仅在服务器上执行

关于javascript - 网络数据如何显示在网络浏览器中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43562977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com