首页> 课程> jquery fun class (quick start version)> jQuery - Get content and attributes

jQuery - Get content and attributes

目录列表

获得内容 - text()、html()

两个简单实用的用于 DOM 操作的 jQuery 方法:


text() - 设置或返回所选元素的文本内容

html() - 设置或返回所选元素的内容(包括 HTML 标记)

57(MQ(SL7%@1LX@N(8S(7QV.png

请在以下空白处填入答案,单击span的获取到php中文网并且获取到里面的标签

1/2