IE에서 어떤 이유로 작동하지 않습니까? 왜 그런지 알아?이 JSON/AJAX 코드는 IE에서 어떻게 작동합니까?
$(document).ready(function() {
$.getJSON("http://jsonip.com/", function (e) {
$.ajax({
url: "https://sub.domain.com/u/",
type: "POST",
data: {
i: e.ip
},
success: function (e) {
window.location.replace("http://www.domain.com/")
}
})
})
})
세미콜론이 누락 되었습니까? –
@idor_brad [nope] (http://es5.github.io/#x7.9) –
"실행되지 않음"은 문제에 대한 자세한 설명입니다. 그 일을 한거야? 시간 전이나 후에 일어난 일 이었습니까? – PlantTheIdea