摘要: if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment) { Range.prototype.createContextualFragment = function (html) { var frag = document.createDocumentFragment(), div = document.createElement("div"); frag.appendChild(div); div.outerHTML = html; 阅读全文
posted @ 2012-02-01 18:46 sulin 阅读(715) 评论(0) 推荐(0)