$('body').on('click','.edit', function() {
var id = $(this).parent().attr('id');
var status = $(".usercontent").attr('status');
if(status == 1){
window.open("form1.html?id="+id,"_black");
}else if(status == 2){
window.open("form2.html?id="+id,"_black");
}
});
1、使用on();
2、师傅领进门,具体去百度!