html5 - 急求?被公司问住了
PHP中文网
PHP中文网 2017-04-17 15:24:14
0
2
572

1,页面第一次加载的时候图片在哪里,公司的图片一般是不是都在一个特定服务器上的
2,要是前后端分离写的网页,页面第一次加载的时候ajax请求的数据是没有的,通过中间层node来操作,但是这个东西是谁来写的,node直接写的静态页面??求大神普及知识

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
大家讲道理

I don’t know how you structured it. Let’s talk about it roughly.

For example, get a report. There are pictures and text in it, and what is requested is data, including the text of the report and the address of the illustration. This data will be filled in the template and then inserted into the DOM. The browser will detect the DOM change and render it. For the newly added image element, the browser goes to the resource server to obtain the image according to the URL of the image. Among them, the templates can be directly obtained when the front-end is initialized and then hidden, or they can be dynamically obtained from the back-end according to the needs. This depends on what technology you use.

Ty80

Ajax is enough to get the data and combine the page. What is the manager asking? This is

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template