玉为什么总是意外的令牌<

时间:2014-11-26 12:32:08

标签: pug

doctype html
link(rel='stylesheet', href='bower_components/bootstrap/dist/css/bootstrap.min.css')

script(type='text/javascript', src='bower_components/angular/angular.js')
script(type='text/javascript', src='/app/app.js')

body(ng-app='app')
  div(ng-controller='testCtrl')
    div hi
    div {{ test }}

调试器继续抱怨:

 Uncaught SyntaxError: Unexpected token <        angular.js:1
 Uncaught SyntaxError: Unexpected token <        app.js:1

我意识到我的脚本标签没有关闭。它在调试器中显示如下。我是jade的新手

<script type='text/javascript', src='bower_components/angular/angular.js' </script>
<script type='text/javascript', src='/app/app.js'  </script>

</script>

之前,两个脚本标记都缺少&gt;

0 个答案:

没有答案