谁能告诉我下面给出的代码有什么问题。我正在尝试使用 json 调用在 div 中加载数据。
function getData() {
$.ajax({
url: "http://echo.jsontest.com/key/value/one/two",
type: "get",
dataType: "JSON"
}, function(data){
$('#99').append(JSON.stringify(data));
});
return false;
}
如果有人可以点亮,那就太好了$.ajax, $.get, $.post and $.getJSON