php中,js验证注册条件,显示提示信息时的中文乱码有关问题

WBOY
Release: 2016-06-13 13:18:36
Original
857 people have browsed it

php中,js验证注册条件,显示提示信息时的中文乱码问题
js文件是单独写的,在验证登陆时填写的简单信息,例如注册名长度必须大于6位,邮箱格式是否正确等,但是在div层显示中的提示信息时是乱码问题,怎么解决啊?附图。。希望大家多多指教。。谢谢。。。

------解决方案--------------------
看不到图。你要做到编码统一 基本就没问题了。
------解决方案--------------------
你把包含js文件在内的内个文件编码全改为utf-8
editplus是设置页面编码,dw是页面属性
在显示页面中添加

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!