<!-- jQuery中用jsonp处理跨域 -->
<script>
$("button").click(function(){
$.ajax({
url:"http://localhost:3000",
type:'get',
dataType:'JSONP',
success:function(weather){
alert(weather)
}
})
})
</script>
jsonp解决跨域问题---jQuery
最新推荐文章于 2023-11-25 22:02:45 发布