PHP页面的编码方式是utf-8,用 echo "
原因:因为有alert()输出中文到浏览器,所以一定要在网页中指定编码方式为UTF-8,即该行不能缺少!
注:如果PHP页面编码方式是gb2312,则不需要添加行
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