javascript - When writing a website with thinkphp, I find that unknown bytes always appear in the front-end body.

WBOY
Release: 2016-08-08 09:06:49
Original
815 people have browsed it

When I use thinkphp to write a website, I find that unknown bytes always appear in the front-end body.

javascript - When writing a website with thinkphp, I find that unknown bytes always appear in the front-end body.
javascript - When writing a website with thinkphp, I find that unknown bytes always appear in the front-end body.
How to solve this problem?

Can it be solved using trim in js? So how to solve this problem?

Reply content:

When I use thinkphp to write a website, I find that unknown bytes always appear in the front-end body.

javascript - When writing a website with thinkphp, I find that unknown bytes always appear in the front-end body.
javascript - When writing a website with thinkphp, I find that unknown bytes always appear in the front-end body.
How to solve this problem?

Can it be solved using trim in js? So how to solve this problem?

Ugh. . I have solved it, but my question has not been passed yet....

That’s because the encoding format needs to be converted to utf-8 BOM-free format~ Some IDEs can directly remove BOM, which is also possible~

http://afericazebra.blog.163....

Just pay attention when saving bom header utf

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!