我是Play框架的新手。如何向会话添加元素列表?
编译器总是抱怨代码:
<ul class="dropdown-menu" role="menu" >
<li ng-repeat="v in values" keypress-events >
<a href="#">{{v.name}}</a>
</li>
</ul>
答案 0 :(得分:3)
您无需自己复制现有会话:
val cookies: List[(String, String)] = List(("a", "b"), ("c", "d"))
Ok(views.html.hello(info)).addingToSession(cookies: _*)