【问题标题】:Laravel Blade Comment causes CONNECTION_RESETLaravel Blade 注释导致 CONNECTION_RESET
【发布时间】:2015-05-01 04:32:30
【问题描述】:

在一个 Laravel 4.2 应用程序中,我有这个视图文件:

{{--
             <table>
               <thead>
                  <th>

                  </th>
                  <th>

                  </th>
                  <th>

                  </th>
               </thead>
               <tbody>
                  <tr>
                     <td>

                     </td>
                     <td>

                     </td>
                     <td>

                     </td>
                  </tr>

               </tbody>
            </table>
--}}

创建此视图会导致浏览器崩溃。

我不知道是哪部分造成的,有时删除一个空格可以解决问题。

有类似的问题,但是刀片 cmets 中有一些刀片命令导致它,这里我对纯 HTML 有同样的问题

编辑: 复制/粘贴上面的代码可以解决问题!请从此要点复制https://gist.githubusercontent.com/anonymous/ad0da06d727e9973ca9e/raw/8d38ad3b416e920a0f1b9b8a42385ae56f25dc20/gistfile1.txt

【问题讨论】:

    标签: php laravel blade


    【解决方案1】:

    这也发生在 laravel 5 上。我通过转换为 php 注释解决了这个问题,即替换

    `{{--` with  `<?php /*`
    

    `--}}` with  `*/ ?>`
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-26
      • 2015-03-05
      • 2018-05-06
      • 1970-01-01
      • 2018-08-13
      • 2014-08-18
      • 2010-11-25
      相关资源
      最近更新 更多