Mass framework design blueprint

Source: Internet
Author: User

In the new year, the mass framework will be removed from the DOM framework, not just a name change.

Front-end
    1. The namespace is renamed to $. $ Is a very attractive variable name. Three of the top ten JavaScript frameworks use it as namespaces: Prototype, mootools, jquery,
      In addition, it has developed to the extreme in jquery, which combines selector, domready, and element creation. So you don't have to think about what $ means. You just need to know that it is a super function,
      It returns an array-like object, specifically for window, document, and element nodes for Batch Processing (set all get one)
    2. The naming and usage of Apis selectively mimic jquery. With the powerful Module System of the mass framework, we can assemble their respective "jquery ".
      Sometimes we only have one form submission function on the page, so we do not need to import the entire library.
    3. The Event System adds support for cross-origin communication.
    4. CSS and FX support abbreviations of attribute names, such as W for width and H for height. Continue to enhance support for css3.
    5. Ajax callback uses the node. js method to handle errors, instead of being divided into success, error, and complete. The timed sending and disabling function and progress bar function are added (in the case of cutting-edge browsers ).
    6. Simplify the asynchronous queuing (deferred), so that it can be used both before and after.
    7. Split several related modules of DOM nodes, separate the parts compatible with ie678, make them into patch modules, and study the usage of ecma262v5 attribute descriptors,
      Replace Old features with more proactive features.
Backend
    1. The backend part is an asynchronous world, and three asynchronous modules at different levels need to be created to process them.
      The advanced iterator module is used to process multiple objects and execute an asynchronous function (in two ways: Serial and parallel ),
      Asynchronous queuing is used to process an object and execute a group of asynchronous functions. When it is not started, you can add new operations and set the interval between operations.
      Operation Flow. Multiple asynchronous operations are used to construct a result. You can specify whether these operations continue to take effect or exit after they are executed once.
    2. Node. js Io operation function encapsulation, such as usability improvement, batch processing support, and Bug fix on window.
    3. The construction of the cache system is divided into multiple warehouses, and the threshold and callback functions can be set.
    4. The concept of wildcard routing for static files...

In addition, the construction of the UI library will also enter the track.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.