play_framework框架–教程(二)

多页面处理 1、app->views 目录,右键, play2template,生成.scala.html文件* 2、page1.scala.html
@main("Hello page1") {
@defining(play.core.PlayVersion.current) { version =>

I am Page1....

}
}

page2.scala.html page3.scala.html相同 3、conf.route
GET / controllers.HomeController.index()
GET /p1 controllers.HomeController.page1fun()
GET /p2

play_framework框架–教程(二)最先出现在Python成神之路

版权声明:
作者:dingding
链接:https://www.techfm.club/p/25437.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>