測試的時候遇到一個問題: <c:out value="${fn:endsWith('helle','e') }"></c:out> <c:out value="${fn:endsWith('hhlle','e') }"></c:out> 訪問的時候顯示 false true 。 為什么啊啊????
測試的時候遇到一個問題:
<c:out value="${fn:endsWith('helle','e') }"></c:out>
<c:out value="${fn:endsWith('hhlle','e') }"></c:out>
訪問的時候顯示 false true 。 為什么啊?。????
2016-10-28
以上是JSTL的endsWith的源碼,可以看出存在一些bug
http://stackoverflow.com/questions/16750540/jstl-bug-in-function-endswith