跨域请求 只要 dataType : 'jsonp',  jsonp:"jsoncallback",  然后返回一个json格式的就可以了

<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>|体检系统</title>
</head>
<body>

<script src="http://cdn.bootcss.com/jquery/1.7.2/jquery.min.js"></script>

<script type="text/javascript">
 
$(function(){

$.ajax(  
    {  
        type:'get',  
        url : 'http://www.taobao.com?loginuser=lee&loginpass=123456',  
        dataType : 'jsonp',  
        jsonp:"jsoncallback",  
        success  : function(data) {  
           alert(data)
        },  
        error : function() {  
            alert('fail');  
        }  
    }  
);  
});
</script>


</body>

</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
  • 2021-03-31
  • 2021-05-30
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案