jquery中的insertAdjacentHtml [英] insertAdjacentHtml in jquery

查看:15
本文介绍了jquery中的insertAdjacentHtml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆