Home >Backend Development >PHP Tutorial >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.

WBOY
WBOYOriginal
2016-08-08 09:06:49878browse

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

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