1.先建立AJAX 请求php 地址 让服务器跨域
Paste_Image.png
2.参数必须以 data= xxxxxxx 不能出现& 否则PHP自动过滤
采用 #的方式进行拼接
Paste_Image.png
3.服务端接收请求过来的参数接收后进行分割 explode “#” $test[0] $test[1]
Paste_Image.png
4.字符串拼接需要用 .来拼接
Paste_Image.png
5.返回数据 echo 返回字符串
Paste_Image.png