October 22 Ajax training diary

Source: Internet
Author: User

Today, teacher Liang Yanbing explained Ajax. According to the feedback from the students yesterday, he thought that the ajaxtable project was too big and he had a hard time learning. He hoped that Mr. Liang could explain a small comprehensive case. Therefore, instructor Liang first explained the Javascript component of the xtree client, and then developed an Ajax demo Based on the xtree, Buffalo, spring, and hibernate frameworks.
Small gains:
VaR OBJ = {
A: 'xxx'
B: function (){}
}
Defines the attributes and methods of an object.

When you click an element on the tree, the returned seleteditem is an object of the element of the display layer, but the ID of the business layer corresponding to this element cannot be known.
This reminds me of the setuserdata method in the DOM node. For JavaScript objects, attributes can be dynamically added. You can temporarily set an attribute for the xtreeitem object so that it is equal to the business layer ID.
Why does buffalo integrate with spring based on the spring integration principle? It is nothing more than using spring to solve the dependency problem of service objects. To use spring, you must use its IOC and AOP functions. Do not abuse some frameworks blindly.

Instructor Liang analyzed the compilation of the entire ajaxtable, and the server integrated spring and hibernate.
 

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.