The source code generated by thinkphp5 tags is confusing
迷茫
迷茫 2017-06-26 10:49:22
0
1
775

The above code arrangement is standard, but I don’t know why the tp5 loop is completely messed up
It becomes the following

  • and are not displayed according to the correct indentation. Although the page is not affected, it is very confusing when viewing the source code.

  • 迷茫
    迷茫

    业精于勤,荒于嬉;行成于思,毁于随。

    reply all (1)
    扔个三星炸死你

    First of all, what you write here is a template language. The TP background is to further convert it into PHP code and then execute it. During the process of converting PHP, the generated code is completely different from the code you see. There may be a lot more. Or less. Some spaces and so on are ignored, and some have extra spaces and line breaks.

    So, the code given to the browser will become what you see, mainly because of the inconsistency between spaces and line breaks.

    Finally, the source code is not for others to see, the code in your editor is. No matter how messy it is, the browser just needs to recognize it. You can look at some websites and all the HTML codes are squeezed together because they have been compressed. But it doesn't matter, so don't worry about it.

      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!