一、在超链接中写入EL表达式:
<img alt="用户头像" src="getImage.do?fileUrl=${fileUrl }" />
建议fileUrl先编码,再使用EL表达式
二、onclick()函数中参数是EL表达式时,要把EL表达式用单引号‘’引起来:
<button οnclick="downImage('${fileUrl }')">下载图片</button>
一、在超链接中写入EL表达式:
<img alt="用户头像" src="getImage.do?fileUrl=${fileUrl }" />
建议fileUrl先编码,再使用EL表达式
二、onclick()函数中参数是EL表达式时,要把EL表达式用单引号‘’引起来:
<button οnclick="downImage('${fileUrl }')">下载图片</button>