Home  >  Article  >  Backend Development  >  javascript - Ajax的问题

javascript - Ajax的问题

WBOY
WBOYOriginal
2016-06-06 20:14:53938browse

客户端向服务器端发送ajax请求,要先经过哪里,才到服务器PHP脚本文件中呢?

回复内容:

客户端向服务器端发送ajax请求,要先经过哪里,才到服务器PHP脚本文件中呢?

javascript - Ajax的问题

路由,也就是你的controller层,这里进行url的处理分析.AJAX发起的也是request请求,所以需要解析请求之后,找到对应的处理方法,也就是对应的PHP脚本.如有不对,请指教

个人理解:说白了,就是和在地址栏中输入链接进行访问是一样的,都是http请求

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn