jquey的ajax使用

调用$.ajax()的方法

$.ajax({
		type:'get',
		url:'http://wthrcdn.etouch.cn/weather_mini?city=北京市',
		//data:{code:code}  请求的参数此处暂不使用
		dateType:'json', //返回的数据类型
		success:function(res){
			console.log(res)
		  }
		})

猜你喜欢

转载自blog.csdn.net/qq_40705120/article/details/82719174