$(function(){ $(document).on('click','.delete_file',function(){ //删除页面信息 $(this).parent().remove(); }) }) function get_fields(tid,id){ var id = arguments[1]?arguments[1]:0; $.post("{fun U('Fields/get_fields')}",{molds:'{$fields_biaoshi}',tid:tid,id:id},function(r){ $("#ext_fields").html(r); }); } function deleteImage_auto(elm,field){ $(elm).prev().attr("src", "{__Tpl_style__}/style/images/nopic.jpg"); $('#'+field).val(""); }