摘要: //监听某个元素下新增元素事件 $("#photos").bind('DOMNodeInserted', function(e) { alert('element now contains: ' + $(e.target).html()); }); //监听某个元素里移除元素的事件 $("#phot 阅读全文
posted @ 2019-12-30 16:12 不知起什么名字 阅读(9555) 评论(0) 推荐(1) 编辑
摘要: 1.after() 在元素的后面插入内容 $(selector).after(content); 阅读全文
posted @ 2019-12-30 16:06 不知起什么名字 阅读(1888) 评论(0) 推荐(0) 编辑