Home  >  Article  >  Backend Development  >  微信6.1安卓上AJAX PUT方法无法获取到参数

微信6.1安卓上AJAX PUT方法无法获取到参数

WBOY
WBOYOriginal
2016-06-06 20:37:151013browse

在微信6.1版本的安卓机上,浏览器内核成了QQ浏览器X5内核,由于此,Ajax的PUT和DELETE方法在PHP后台无法获取到参数。

回复内容:

在微信6.1版本的安卓机上,浏览器内核成了QQ浏览器X5内核,由于此,Ajax的PUT和DELETE方法在PHP后台无法获取到参数。

解决逻辑是:在ajax beforeSend时将put转为post,这样参数就能传过去,同时要加一个标识让后台解析识别时转到对应的put方法

因为好像QQ浏览器不支持put,delete,用兼容方法做

遇到同样问题,你是怎么解决的?

用post或者get请求

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