阅读背景:

Cannot read property 'defaultView' of undefined 报错解决

来源:互联网 

  当我们在一个事件方法中去使用$.ajax进行数据交互时

	$('.btn_box').click(function() {
		$.ajax({
			type: 'post',
			url: '',
			dataType: 'json',
			contentType: 'application/json; charset=utf-8',
			async: false,
			success: function(res) {
				console.log($(this))
				
			}
		})
	})            
	$('.btn_box



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: