我的脚本是这样的:
$.ajax({
url: _url,
type: 'GET',
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (result) {
...
}
}).done(function () {
for(var i=0;i<7;i++) {
this["td"+i] = $('#bodychel-' + coachId + clubId + ' table tbody td:eq(' + (i) + ')').height();
$('#bodychel-' + coachId + clubId + ' table thead th:eq(' + (i) + ')').css({ height: this["td"+i] });
}
});
If I console.log(this["td"+i]);
,chrome和safari的结果是不一样的。 chrome的结果是true
我怎么解决这个问题?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)