12 2009 档案

javascript table 插入删除行
摘要:<html><head><script type="text/javascript">function deleteRow(r){var i=r.parentNode.parentNode.rowIndexdocument.getElementById('myTable').deleteRow(i)}function insertRowInTable(){var... 阅读全文

posted @ 2009-12-14 15:42 aarron84 阅读(235) 评论(0) 推荐(0)

insertAdjacentHTML方法示例 (转)
摘要:insertAdjacentHTML方法示例 添加HTML内容与文本内容以前用的是innerHTML与innerText方法,最近发现还有insertAdjacentHTML和insertAdjacentText方法,这两个方法更灵活,可以在指定的地方插入html内容和文本内容。insertAdjacentHTML方法:在指定的地方插入html标签语句 原型:insertAdajcentHTML(... 阅读全文

posted @ 2009-12-14 11:29 aarron84 阅读(155) 评论(0) 推荐(0)

导航