jQuery 添加新内容有以下四个方法:

https://www.cnblogs.com/otsf/p/8514981.html

  • append() - 在被选元素的结尾插入内容

  • prepend() - 在被选元素的开头插入内容

  • after() - 在被选元素之后插入内容

  • before() - 在被选元素之前插入内容

猜你喜欢

转载自blog.csdn.net/NRlovestudy/article/details/85968243