时间:2021-07-01 10:21:17 帮助过:7人阅读
function piclist() { var did = $('#did').combobox('getValue'); $('#dlg').dialog('close'); $('#dlg_pic').dialog('open').dialog('setTitle','添加'); var pic = 'pic'; $.ajax( { type: "get", url : "../php/staff.php", data: "o="+pic, datatype: 'json', success: function(data){//如果调用php成功,data为执行php文件后的返回值 var obj=eval(data); for (var i=0; i"+ "
"); }else{ $('#fm_pic').append(""+ ""+ "
"); } } } }); }
function add(){ $.messager.confirm('添加','确认添加?',function(r){ $.post('../php/radio.php‘,function(){ $('#dg').datagrid('reload'); }); }); }
添加时给他加个不会重复的唯一class就好了
标志唯一ID