Using javascript in play template

前端 未结 2 719
一整个雨季
一整个雨季 2021-01-20 00:11

I\'m using the Play! Framework. And I have a scala.html template file.

I\'m trying to add a Google javascript library to add graphs to the Web app.

Basiclly

2条回答
  •  终归单人心
    2021-01-20 00:45

    I think you need to add a quotation marks around the date:

    @for(run <- currentPage.getList) {
      ['@run.runDate.format("yyyy")', @run.successPercentage],
     }
    

提交回复
热议问题