2012-04-27 73 views
6

Groovy中允許做一些字符串的好東西在前端頁面,例如:Groovy的擴展String類

${"hello".capitalize()}

我如何添加一個新的自定義方法將String類?像:

${"hello".custom()}

回答