var targetNode = $('#query')[0];
function callback(mutationsList, observer) {
console.log(13,mutationsList);
console.log(14,observer);
console.log(111111111);
}
var options = {
'childList': true,
'attributes':true
}
var mutationObserver = new MutationObserver(callback);
mutationObserver.observe(targetNode, options );
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)