会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Victor
博客园
首页
新随笔
联系
订阅
管理
2015年12月3日
jquery中的replaceWith()和html()有什么区别?
摘要: 区别在于,html()会替换指定元素内部的HTML,而replaceWith()会替换元素本身及其内部的HTML。例子:112345// Text$('#myid').html('Text'); // Text$('#myid').replaceWith('Text'); 来自为知笔记(Wiz)
阅读全文
posted @ 2015-12-03 09:39 Victor——
阅读(609)
评论(0)
推荐(0)
公告