摘要: ie系列(6+),支持object.insertAdjacentHTML(where, html),查看使用方法和参数:MSDN:http://msdn.microsoft.com/en-us/library/ms536452%28VS.85%29.aspx firefox与chrome已支持此系列方法(包含:object.insertAdjacentText\object.insertAdjacentElement ,firefox仅支持了HTML的api)如果浏览器是早期版本,可以使用 range.createContextualFragment,将字符串转为dom tree。此方法返回一 阅读全文
posted @ 2013-12-09 12:29 henry_li 阅读(170) 评论(0) 推荐(0) 编辑