If there is <p id="hiredlist"></p> tag in one jsp page, we want to insert some content into that tag with using javascript, we can do this,
document.getElementById('hiredlist').innerHTML=<table></table>
how easy that is!
how easy that is!
本文介绍了一种使用JavaScript向特定HTML标签内插入内容的方法。通过获取页面中带有'id'为'hiredlist'的元素,并利用'innerHTML'属性设置新的HTML内容,实现动态修改网页结构的目的。
144

被折叠的 条评论
为什么被折叠?



