ajax回显数据的jsp写法

ajax数据回显

$.ajax({
type:'post',
url:'',回显数据走的url(查找数据)
contentype:'application/x-www-form-urlencoded; charset=UTF-8',
datatype:'json',
success.function(data){
for(var i=0;i'++'';//前面是要传递的数据,后面是要在页面显示的数据
$('#id').append(add_option);
}
from.render("select");
}
});



你可能感兴趣的:(ajax回显数据的jsp写法)