Home > Backend Development > PHP Tutorial > $.ajax 请求php后盾 自动加上反斜杠 转义字符

$.ajax 请求php后盾 自动加上反斜杠 转义字符

WBOY
Release: 2016-06-13 12:16:25
Original
911 people have browsed it

$.ajax 请求php后台 自动加上反斜杠 转义字符
如图:
$.ajax


PHP后台返回:



PHP代码


------解决思路----------------------
关掉php设置项 magic quotes gpc
或者对结果运行stripslashes

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