Home > Backend Development > PHP Tutorial > 论坛的发言在写入数据库之前应该怎么操作

论坛的发言在写入数据库之前应该怎么操作

WBOY
Release: 2016-06-20 12:35:39
Original
1047 people have browsed it

js用escape 中文会变成%uxxxx的形式,怎么转换回来?


不用escape,大于号和小于号用ajax传是空的啊


回复讨论(解决方案)

不妨试试encodeURIComponent()

js用escape 中文会变成%uxxxx的形式,怎么转换回来?


不用escape,大于号和小于号用ajax传是空的啊



谢谢!!!!!!!!!
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