关于POST抓取不到数据的有关问题

WBOY
Release: 2016-06-13 10:53:13
Original
1333 people have browsed it

关于POST抓取不到数据的问题
问个基础的问题:

环境 apache + php

$.post('/user/daka',{"test":"1"},function(data){....})  
$.post('/user/daka/',{"test":"1"},function(data){....}) //url后面多个斜杠

第一行代码,$_POST 获取不到数据,第二行可以。
请问这应该是apache的配置问题还是php的配置问题?

------解决方案--------------------
不是apache 也不是php 问题 是你写错问题

如果加了斜杠那么就是这个目录下默认的索引文件
如果不加那么就是 daka这个文件...当然 你没有daka文件返回数据的对吧

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!