0
我基本上把人插入到我的db中,並使用下面的代碼。插入db if(response == ok)我如何顯示添加的人?插入到db後的jQuery
它將人添加到db。但是,我必須顯示添加的人員。如果我使用重新加載它發送主頁面。你有什麼建議?
function AddData(par){
var artistName = $("input[name='"+par+"']").attr('id') + '-'+$("input[name='"+par+"']").val();
$.post('/json/management/AddDataAjax2',
{
"artistName": artistName
},
function(response){
console.log(response);
if(response =='ok')
alert("Başarıyla eklendi");
else{
alert("Sanatçı bulunamadı, yönlendiriliyorsunuz");
window.location.replace("http://www.sinemalar.com/management/artistAddEditRemove/");
}
});
}
呃...添加顯示人的代碼,而不是'alert'? – 2012-04-14 10:16:40
你想html端? – 2012-04-14 10:18:35