Javascript 是否可以从app.js获取jsp变量?
在jsp中,我有一行Javascript 是否可以从app.js获取jsp变量?,javascript,jquery,jsp,Javascript,Jquery,Jsp,在jsp中,我有一行,但我想从app.js的以下函数中读取它: $(function () { if (!app.noticeModal) { this.noticeModal = new $.modal({ closeOnSideClick: true, staticPos: true }); } this.noticeModal.setContent($('#contract-susp
,但我想从app.js的以下函数中读取它:
$(function () {
if (!app.noticeModal) {
this.noticeModal = new $.modal({
closeOnSideClick: true,
staticPos: true
});
}
this.noticeModal.setContent($('#contract-suspension-modal').html());
this.noticeModal.show();
});
可以这样做吗?您可以var tmp=“${suspensionInfo.suspended}”
您可以var tmp=“${suspendioninfo.suspended}”代码>