d3.js 清除svg
rave.select(el).html(''); // 不推荐
rave.selectAll("svg > *").remove(); // 移除svg内部节点
rave.selectAll("svg").remove(); // 移除svg节点
posted on 2015-08-24 08:52 timelyxyz 阅读(5528) 评论(0) 编辑 收藏 举报
Stay hungry, stay foolish.
rave.select(el).html(''); // 不推荐
rave.selectAll("svg > *").remove(); // 移除svg内部节点
rave.selectAll("svg").remove(); // 移除svg节点
posted on 2015-08-24 08:52 timelyxyz 阅读(5528) 评论(0) 编辑 收藏 举报