recently learned that ajax only html and css knowledge of the rookie is not to understand this thing, this is not like the big guys to ask for advice!
the data structure of the request is as follows: $aja () mode
{
"list": [{"id": 1, "name": "Xiaobai"}, {"id": 2, "name": "Xiao Hei"}, {"id": 3, "name": "Xiao Hong"}]
}
request code:
$.ajax({
url:"data.html",
type:"get",
dataType:"html",
success: function(list){
alert("");
},
error:function(){
alert("");
}
})
I want to output to html structure as follows:
ask the bosses for help?