如题

解决方案 »

  1.   

    载入jQuery.js
    $.ajax({
             async: false, // 默认true(异步请求)
             cache: true, // 默认true,设置为 false 将不会从浏览器缓存中加载请求信息。
             type: "GET", // 默认:GET 请求方式:[POST/GET]
             url: _url, // 默认当前地址,发送请求的地址
             error: function(xml) { alert('Error request failed'); }, // 请求失败时调用
             timeout: 1000, // 设置请求超时时间
             success: function(xml) { // 请求成功后回调函数 参数:服务器返回数据,数据格式.
                       }});