$(document).ready(function() {
$.ajax({
url: 'objects.php',
type:'GET',
dataType: 'json',
success: function(response)
var variable = [some_array];
//how to create an variable containing json array and access this variable outside?
}
});
}); alert(variable);
为什么这不起作用?我闻到一些范围问题...
谢谢你。