吧ONGL标签放到html标签中,来操作html的标签就可以了
例子代码:
html
<div id="categoryid" style="display:none;"><s:property value="id"/></div>
javascript
<script type="text/javascript"> var categoryid = document.getElementById("categoryid").innerHTML; </script>
2022-08-02 18:00:31
吧ONGL标签放到html标签中,来操作html的标签就可以了
例子代码:
html
<div id="categoryid" style="display:none;"><s:property value="id"/></div>
<script type="text/javascript"> var categoryid = document.getElementById("categoryid").innerHTML; </script>