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

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

WBOY
WBOYOriginal
2016-06-20 12:35:39956browse

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


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


回复讨论(解决方案)

不妨试试encodeURIComponent()

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


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



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