今天在写js的时候吗,发现我在JS中新增加的标签,无法触发click事件,通过各种找资料的途径,最后解决了这个问题。
$(document).on('click', '.file_remove', function(){
$(this).parent(".uploader_file").remove();
});
下面是对这个问题的解释
今天在写js的时候吗,发现我在JS中新增加的标签,无法触发click事件,通过各种找资料的途径,最后解决了这个问题。
$(document).on('click', '.file_remove', function(){
$(this).parent(".uploader_file").remove();
});
下面是对这个问题的解释