XHTML does not support document.write
or .innerHTML
. Due to the fact, that jQuery inserts the new code using one of these methods, all XHTML compatible browsers will error out.
XHTML with application/xhtml+xml
does not support raw modification of the source using any of these jQuery methods: .append()
, .html()
, .insert...()
, etc.
Instead, query for some JSON data and insert the AJAX-received values into either pre-defined tags using .text()
/ .val()
or dynamically create those nodes using document.createElement('someTag')
.
解决:
所有评论(0)