This is just the nature of how JSONP works, creating a <script>
tag, not actually using a XMLHttpRequest
to get data.
For what you're doing, you can just run the code before, like this:
$('#content').html('Loading...');
$.ajax({
type:"GET",
url:'http://lab.laukstein.com/ajax-seo/.json',
dataType:'jsonp',
async:false,
success:function(data){
$('#content').html(data.content);
}
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…