thymeleaf中如何在${}中嵌套${}_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:55:24
Original
3113 people have browsed it

如题,如果我可以读出${yearNum}为2014,下载我希望获得year2014这样的数据,year为固定字符串,yearNum为2014,我要通过yearNum得到year2014怎么做到,求解,大概意思就是${year+${yearNum}}


回复讨论(解决方案)

${'year'+ yearNum} 这样就是year2014

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template