<div class="price"><strong>PRICE:</strong> <span class="red">${book.price } $</span></div>
${book.Price}是不行的,显示 找不到这个property.
属性名首字母一定要是小写的。
只写 price 或者Price不会报错,也不会显示内容。
:当get方法后的字符如果前两个都是大写时,EL表达式需要大写.除此之外均为小写.
<div class="price"><strong>PRICE:</strong> <span class="red">${book.price } $</span></div>
${book.Price}是不行的,显示 找不到这个property.
属性名首字母一定要是小写的。
只写 price 或者Price不会报错,也不会显示内容。
:当get方法后的字符如果前两个都是大写时,EL表达式需要大写.除此之外均为小写.