我有一个由 Laravel 生成的 .blade.php 文件,它包含以下行
{{-- --}}
什么是双 curl 双破折号?
这是评论吗?
最佳答案
在 Blade 中这是一条评论:
Blade also allows you to define comments in your views. However, unlike HTML comments, Blade comments are not included in the HTML returned by your application:
{{-- 此注释不会出现在呈现的 HTML 中 --}}
您可以使用this链接以了解有关 Blade 模板以及所涉及的不同类型代码及其在模板文件中的用法的更多信息。
关于php - html/blade 中双 curl 双破折号的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34645209/