Using JSP code in JavaScript

后端 未结 7 1419
夕颜
夕颜 2020-12-09 05:14

I want to use JSTL\'s fmt tag in JavaScript to localize my alert messages. My JavaScript file is a standalone file and when I include fmt tag in js, the file browser gives J

7条回答
  •  执笔经年
    2020-12-09 05:59

    You can't use tags in JavaScript but there is a workaround: Put the tag into an hidden DIV (

提交回复
热议问题