jquery之after的用法
1、after 有两个参数content 插入到每个目标后的内容function 函数必须返回一个html字符串。

3、jQuery 代码:$("p").after("<b>Hello</b>");

5、在所有段落之后插入一个DOM元素。HTML 代码:<b id="foo">Hello</b媪青怍牙><p>I would like to say: </p>

7、结果:<p>I would like to say: </p><b id="foo">Hello</b>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:89
阅读量:29
阅读量:49
阅读量:51
阅读量:66