AJAX远程读取数据的方法

<script type=”text/javascript”>
$(function(){
$.ajax(
{
type:’get’,
url : ‘http://cloud.it09.com/synchronization/index.php’,
dataType : ‘text’,
jsonp:”jsoncallback”,
success : function(data) {
$(“#mainText”).html(data);
},
error : function() {
alert(‘远程读取失败。’);
}
}
);
})
</script>