吧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>
吧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>