2013-04-30 89 views

回答

2

是的。在这里看到:Velocity User Guide - Property Lookup Rules其中指出:

作为一个例子,$customer.address,该序列是

  1. getaddress()
  2. getAddress()
  3. get("address")
  4. isAddress()

为了更精确, Velocity User Guide - Case Substitution

$data.getRequest().getServerName() 
## is the same as 
$data.Request.ServerName 
+0

但是用圆括号书写getter调用也是正确的,意味着什么似乎是对的,对吧? – Dims 2013-04-30 12:32:15

+0

是的,我更新了这篇文章。 – 2013-04-30 12:35:15

相关问题