SuperFlyDOM Features 介绍
Create DOM elements on the fly and automatically append or prepend them to
another DOM object.
Also included are template functions (tplAppend and tplPrepend) that can take
a JSON-formatted HTML structure, apply a dataset, and create complex DOM
nodes! New template system is much more forgiving and flexible than prevIoUs
DOM element creation plugins.
Features
- Add any element with or without all types of properties or children in any order
- Chainable! Returns last appended/prepended element in jQuery object - but also works on plain DOM elements!
- Accepts inline HTML as string, innerHTML style
- Fixes IE special-cases , like input element creation and children of tables
- Lightweight yet fast! Uses internal jQuery functions for portability while creating DOM nodes and accessing appendChild directly for speed
-
AJAX-friendly - SuperFlyDOM takes real JSON objects, perfect for lightweight AJAX (or jQuery’s .getJSON) retrieval
-
This plugin is originally built off of FlyDom 3.0.8 , by dohpaz :
[http://dohpaz.mine.nu/jquery/jquery.flydom.html] -
who was inspired by “oslow” :
[http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-
prototype#comment-176] -
And also contains methods from Sean ‘s jquery-dom.js
As I Could not get dohpaz’s code to work with my template (and since dohpaz
Could not get oslow’s code to work), and neither Michael Geary’s code nor
Sean’s code were jQuery style and chainable, and I wanted a ton of features
anyway, while retaining a small code base, I decided to rip apart, clean up
(JSLint),and add features to their plugins. My hope is that this version will
be easier to understand, more forgiving and flexible, and maintain with future
versions of the fantastic framework which is jQuery.
SuperFlyDOM Features 官网
http://plugins.jquery.com/project/SuperFlyDOM
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。