註冊 | 登入 | 全文檢索 | 排行榜 |
![]() |
» JWorld@TW
» Java SE 討論區
![]() ![]() |
![]() ![]() ![]() ![]() |
本主題所含的標籤 |
作者 | Re:代換特殊字串有何好方法 [Re:hawkhero] | ||||
jason_chan19
![]() ![]() ![]() ![]() ![]() ![]() 發文: 175 積分: 1 ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() 利用Groovy的template engines也可以做到,如下:
可以參考 http://groovy.codehaus.org/Groovy+Templates 至於Groovy的介紹請參考 http://groovy.codehaus.org/ Groovy... * is an agile and dynamic language for the Java Virtual Machine * builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk * makes modern programming features available to Java developers with almost-zero learning curve * supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain * makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL * increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications * simplifies testing by supporting unit testing and mocking out-of-the-box * seamlessly integrates with all existing Java objects and libraries * compiles straight to Java bytecode so you can use it anywhere you can use Java ![]() ![]() 你若不想做,會找到一個藉口、你若想做,會找到一個方法 |
話題樹型展開 |
人氣 | 標題 | 作者 | 字數 | 發文時間 |
1334 |
![]() | hawkhero | 214 | 2008-05-06 13:43 |
1024 |
![]() ![]() | qrtt1 | 63 | 2008-05-06 19:50 |
1076 |
![]() ![]() | jason_chan19 | 1800 | 2008-05-07 11:02 |
1088 |
![]() ![]() | hawkhero | 15 | 2008-05-07 15:00 |
» JWorld@TW » Java SE 討論區 |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() |