玉中的缩进错误

时间:2016-01-21 10:39:24

标签: express pug

这是我的玉模板。当我尝试测试以下jade代码@ http://jade-lang.com/时,它会显示缩进错误

select DateOfBirth from MyTable where month(DateOfBirth) = 2;

我在错误显示后运行应用程序

var number:String = "0123456789"
var callURL:String="sms:"+number+"&body=Hey! This is a test message. http://google.com";
var targetURL:URLRequest = new URLRequest(callURL);
NavigateToURL(targetURL)

1 个答案:

答案 0 :(得分:1)

你的李应该在ul里面。

  html(ng-app='testApp2', lang='en')
     head(ng-app = testApp2)
         script(src='//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular.min.js')
         script(type='text/javascript', src='/assets/js/app.js')
         title!= title
     body(ng-controller = 'mainController as vm')

       {{ vm.massage }}
       ul
          li(ng-repeat='person in vm.person')
          {{person.name}}

现在我的代码看起来像这样

html(ng-app='testApp2', lang='en')
  head(ng-app = testApp2)
        script(src='//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular.min.js')
    title!= title
  body(ng-controller = 'mainController as vm')
      script(type='text/javascript', src='/assets/js/app.js')

ul
     li(ng-repeat='person in vm.person'){{person.name}}