jquery中的insertAdjacentHtml [英] insertAdjacentHtml in jquery
问题描述
出于某种原因,在 FF 中使用 insertAdjacentHtml 函数时,我得到 insertAdjacentHTMl 不是函数错误,在 jQuery 或其他一些替代 javascript 函数中是否有替代方法?
for some reason when using insertAdjacentHtml function in FF I am getting insertAdjacentHTMl is not a function error, is there an alternative to this in jQuery or some other alternative javascript function?
推荐答案
jquery 使用各种函数来实现:
jquery uses various functions to achieve this :
阅读:
http://api.jquery.com/insertAfter/
http://api.jquery.com/append/
http://api.jquery.com/appendTo/
http://api.jquery.com/prepend/
http://api.jquery.com/prependTo/
...以及更多
Read about:
http://api.jquery.com/insertAfter/
http://api.jquery.com/append/
http://api.jquery.com/appendTo/
http://api.jquery.com/prepend/
http://api.jquery.com/prependTo/
... and more
jQuery 操作 API 文档中的更多内容:
http://api.jquery.com/category/manipulation/
And more in jQuery Manipulation API documentation:
http://api.jquery.com/category/manipulation/
这篇关于jquery中的insertAdjacentHtml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!