Javascript and session variables

前端 未结 5 1392
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-21 08:28

I have a database that stores events in it and a page with a calendar object on it. When rendering the days it looks through the months events and if any match the current d

5条回答
  •  离开以前
    2020-12-21 08:45

    If you are using something like Struts2, you can have a hidden variable in your jsp

     
    

    And within javascript simply access this variable

    alert(document.getElementById('EditModeId').value);
    

提交回复
热议问题