0
//$colspan
是字符串中的數字(例如。$colspan="5"
)。在解析時,有時會給出NumberFormatException。任何幫助將不勝感激。在解析速度中的整數時NumberFormatException
#set($Integer=0)
#if($Integer.parseInt($colspan)>1)
//some code here.....
#end
//$colspan
是字符串中的數字(例如。$colspan="5"
)。在解析時,有時會給出NumberFormatException。任何幫助將不勝感激。在解析速度中的整數時NumberFormatException
#set($Integer=0)
#if($Integer.parseInt($colspan)>1)
//some code here.....
#end
爲什麼不使用VelocityTools項目中的MathTool或NumberTool。
我不知道,該怎麼做?????? 請舉1個例子。 – ved 2012-04-07 12:30:16
有沒有人可以給我1個用MathTool或NumberTool解析Integer的例子? – ved 2012-04-09 04:34:30
context.put(「math」,new MathTool()); – 2012-04-09 14:25:38