appendText
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/appendText
软件介绍
Description
This (very) small plugins is the incestuous child of "append" and "text": it appends a new Text Node.
This is especially important when you want to append user-supplied input, because a Text Node is never interpreted as HTML.
Example
var $myLabel = $("<label/>")
.append("<input type='checkbox'/>")
.appendText("use HTML <a href=''>");Will add to the DOM the equivalent of the following HTML:
<label><input type='checkbox'/>use HTML <a href=''></label>