编辑代码

//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
console.log("Hello world!            -  js.jsrun.net ");
$.ajax({
    type: 'POST',
    timeout: 10000, // 设置超时为10秒
    dataType: 'json',
    url: "http://192.168.10.200:6080/arcgis/rest/services/%E5%AE%89%E5%BE%BD%E4%B8%89%E5%85%A8/DT6/MapServer?f=json",
    success: function(response) {
        console.log(response);
    },
    error: function(xhr, textStatus, errorThrown) {
        console.log("Error:", textStatus, errorThrown); // 应该会打印 "Error: timeout"
        console.log("Status Code:", xhr.status);
        console.log("Response Text:", xhr.responseText);
    }
})