2012-04-27 78 views
6

Groovy中允许做一些字符串的好东西在前端页面,例如:Groovy的扩展String类

${"hello".capitalize()}

我如何添加一个新的自定义方法将String类?像:

${"hello".custom()}

回答