上一页 1 2 3 4 5 6 ··· 10 下一页
  2015年11月3日
摘要: 模块定义了一个应用程序。模块是应用程序中不同部分的容器。模块是应用控制器的容器。控制器通常属于一个模块。应用("myApp") 带有控制器 ("myCtrl"):{{ firstName + " " + lastName }}通常 AngularJS 应用程序将模块和控制器包含在 JavaScrip... 阅读全文
posted @ 2015-11-03 10:40 alex_cool 阅读(286) 评论(0) 推荐(0) 编辑
  2015年11月2日
摘要: AngularJS 为 HTML DOM 元素的属性提供了绑定应用数据的指令。ng-disabled指令直接绑定应用程序数据到 HTML 的 disabled 属性点我!按钮 ng-disabled指令绑定应用程序数据 "mySwitch" 到 HTML 的 disabled 属性。ng-model... 阅读全文
posted @ 2015-11-02 10:06 alex_cool 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 过滤器可以使用一个管道字符(|)添加到表达式和指令中AngularJS 过滤器可用于转换数据:currency格式化数字为货币格式。filter从数组项中选择一个子集。lowercase格式化字符串为小写。orderBy根据某个表达式排列数组。uppercase格式化字符串为大写。uppercase... 阅读全文
posted @ 2015-11-02 09:47 alex_cool 阅读(235) 评论(0) 推荐(0) 编辑
  2015年10月30日
摘要: 添加用户编辑区1.修改Admin.index()public static void index() { List posts = Post.find("author.email", Security.connected()).fetch(); render(posts);} 2.修改... 阅读全文
posted @ 2015-10-30 16:17 alex_cool 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.定制CRUD管理页面> play crud:ov --layout 替换生成文件内容app/views/CRUD/layout.html#{extends 'admin.html' /}#{set 'moreStyles'} #{/set} #{if flash.success... 阅读全文
posted @ 2015-10-30 15:27 alex_cool 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 添加权限控制1.导入Securemodule,该模块提供了一个controllers.Secure控制器。/conf/application.conf# Import the secure modulemodule.secure=${play.path}/modules/secure /conf/... 阅读全文
posted @ 2015-10-30 15:13 alex_cool 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 1.定制Comment列表新增加Comment list页面,执行命令行> play crud:ov --template Comments/list 会生成/app/views/Comments/list.html生成的文件中#{crud.table /}是表格的内容,可以替换为一下内容,显示更... 阅读全文
posted @ 2015-10-30 14:06 alex_cool 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 添加增删改查操作1.开启CRUD Module在/conf/application.conf中添加# Import the crud modulemodule.crud=${play.path}/modules/crud 在/conf/routes中添加# Import CRUD routes* ... 阅读全文
posted @ 2015-10-30 13:38 alex_cool 阅读(1122) 评论(0) 推荐(0) 编辑
  2015年10月29日
摘要: 创建Tag标签1.创建Model@Entity@Table(name = "blog_tag")public class Tag extends Model implements Comparable { public String name; private Tag(Stri... 阅读全文
posted @ 2015-10-29 17:03 alex_cool 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1.添加验证码Application Controller添加captcha()public static void captcha() { Images.Captcha captcha = Images.captcha(); renderBinary(captcha);} 添加RouteGET ... 阅读全文
posted @ 2015-10-29 11:21 alex_cool 阅读(486) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页