Home >Backend Development >PHP Tutorial > php编码 js解码解决思路

php编码 js解码解决思路

WBOY
WBOYOriginal
2016-06-13 12:45:51794browse

php编码 js解码
求一个方法
php编码 js解码.
1.PHP页面编码中文,存入数据库.
2.通过数据库取出数据,封装成JSON.返回到页面,通过JS解码显示中文.
大牛有什么好方法吗?
PHP5.2版本的.

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