摘要: 区别在于,html()会替换指定元素内部的HTML,而replaceWith()会替换元素本身及其内部的HTML。例子:112345// Text$('#myid').html('Text'); // Text$('#myid').replaceWith('Text'); 来自为知笔记(Wiz) 阅读全文
posted @ 2015-12-03 09:39 Victor—— 阅读(595) 评论(0) 推荐(0) 编辑