jQuery API | jQuery API 中英文对照版 - jQuery在线查询手册 |
html |
html() 取得第一个匹配元素的html内容。这个函数不能用于XML文档。 返回值:String 示例: $("div").html(); HTML 代码: <div><input/></div> 结果: <input/> Get the html contents of the first matched element. This property is not available on XML documents (although it will work for XHTML documents). Return value: String $("div").html();Before: <div><input/></div> Result: <input/> |