jsp中的$/%说明

     
%{ }:
             相当于EL里的${},%{ }是有struts的标签是用的,如:<s:property value="%{var}"/>.     var就是action传过来的变量,但这个变量要action里有对应的getter和setter     对于jsp就是相当于<%= %>
$:
在jquery中 $代替频繁的document.getElementById()操作

猜你喜欢

转载自2929582988.iteye.com/blog/2319235