在Web环境中执行的顺序 [英] order of execution in web environment
本文介绍了在Web环境中执行的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在web中执行的顺序是什么? PHP,HTML,Javascript,css和mysql是要执行的项目
what is the order of execution in web ? PHP, HTML, Javascript, css and mysql are the items to execute
推荐答案
顺序如下:
- 浏览器 - 发送请求
- 服务器 - 执行PHP脚本
- 发送输出到浏览器
- 浏览器 - 读取输出并执行JavaScript
- Browser - send request
- Server - execute PHP script
- Server - send output to browser
- Browser - read output and execute JavaScript
- 浏览器:请求页面/index.php
-
服务器:执行index.php
- Browser: requesting page /index.php
Server: execute index.php file on the server
<?php echoHello,world !; ?> < script> alert(hello!)< / script>
服务器:
< script>
c $ c> alert(hello!) Server: respond the output
这篇关于在Web环境中执行的顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文