Originally released in the third border of the Institute szhshp , please indicate
IE8 compatibility issues - AJAX result of the use of inside .html()
and innerHTML
error
First of all I wish all the computers are still using IE8 blew the whole place
Then I wish all IE8 browser also supports all of the company blew place
Ok we look at the problem.
$.ajax({
url: 'xxxxx',
type: 'get'
})
.done(function(res) {
$("#abc").html(res); // 报错
})
It reported a Unknown Runtime Error, Error damn not even explain all.
First of all the compatibility error only occurs in IE8, the follow-up version does not exist, other browsers do not exist.
Possible reasons include:
- Error nested tags, such as
li
Before and after no rightul
orol
head and tail symbolsp
Tag is erroneously nestedh1
May not be closed before and after
form
Tags are nested
The general is
form
the cause of nested labels
Solution:
The nested tags removed
- For example, I was
form
there to open a modal, modal which shows anotherform
, this time just to put modalform
outside to p
Tags nested inside is not correct, replacediv
References
Internet Explorer FIX: Unknown Runtime Error Using innerHTML & Ajax