Home > Web Front-end > JS Tutorial > DOMAssitant latest version DOMAssistant 2.5 released_js object-oriented

DOMAssitant latest version DOMAssistant 2.5 released_js object-oriented

WBOY
Release: 2016-05-16 19:07:04
Original
1116 people have browsed it

A project on Google Code
has just released version 2.5
claiming to be a large and comprehensive js library that will compete with jQuery, prototype, YUI, and Ext, haha ​​
With this release of DOMAssistant, I feel that it can seriously compete
with the major JavaScript libraries on the market. It has a very easy
syntax to select or manipulate elements, and with the core
functionality anyone needs, without having to worry about web browser
differences
I took a brief look at the syntax. In fact, it should be able to basically do everything YUI can do, but Enhanced performance and extra checks for memory leaks are relatively strong. Take a look at it when you have time.
Secondly, it has some more convenient syntax. The CSS and XPath syntax used by Selector is definitely more efficient than YUI's YAHOO.util.get and then getElementsByClassName (also: the new version of YUI has also released Selector) , and also make an Ajax request. It has the most commonly used get and load methods. Obtaining data and finding and updating the content of an element can be completed within one line of code. However, using YUI to do this may require 10 lines of code. , anyway, at worst, you can just write the most commonly used load and get methods when packaging YUI yourself. Detailed methods are still needed. After all, not all requests are handled as simply as get and load.

Author site: http://www.robertnyman.com/
Detailed introduction: http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/

New features included in version 2.5:
Full CSS1-3 selector support Full CSS1-3 selector support
New AJAX methods: load and get New Added load and get methods
Enhanced performance and extra checks for memory leaks Enhanced performance and extra checks for memory leaks
XPath Support scope to make use of private properties Create your own running domain to protect all your own properties
Also, in terms of code quality Robert has taken the extra step to ensure that the whole library is JSLint validated.
In addition, to ensure Code quality, the entire code base has passed JSLint verification,


The main purpose of DOMAssistant is to provide a solid foundation to build upon without all of the extras sometimes included in other libraries. As such, DOMAssistant focuses on:
The main purpose of DomAssistant is to provide a basic class library that does not rely on any third-party class library. DomAssistant focuses on the following features:

Element selection (through CSS selectors or enhanced methods). Element selection (via CSS selectors or more powerful selection methods)
CSS handling (adding and removing CSS classes). CSS property manipulation (adding or removing CSS Class)
Event handling (adding and removing events). Content manipulation (add or remove elements).

AJAX interaction (getting content from other sources, and adding it to the document). >Ajax interaction (get content from the outside and add it to the specified location on the page)

DOM loaded (calling functions when the DOM is loaded, as opposed to the document with all dependencies).
DOM loading is completed (when Call back a function after the page DOM is loaded, instead of waiting for the page content to be loaded)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template