I borrowed a phrase from Brother plum blossom: fast and furious.
First of all, let's compare the ajax.net and Atlas! So that friends may not make the same mistakes as me in some aspects. Of course, this only represents my experience and my point of view.
1. If you are using Forms authentication, an undefined JS namespace error will occur on an unacceptable page, which is the same for ajax.net or Atlas, the solution is to allow all users first and then separately on the web. set permissions in config
2. In terms of speed, performance, and stability, Atlas is slightly better than ajax.net.
3. ajax.net supports synchronous data transmission and asynchronous data transmission. However, Atlas only supports asynchronous data transmission. Code Ajax.net is better than atlas, but ajax.net has a feature in asynchronous transmission and does not allow multiple calls to the same server class at the same time. My solution is to write another class.
4. Both ajax.net and Atlas can return a able from the server, but the method received on the client is different. The following is a small example. Suppose var dt = datatable returned by the server.
The method for ajax.net is:
If (Dt. Rows. length> 0)
{
A. style. Display = "";
A. innerhtml = "";
For (var row = 0; row <DT. Rows. length; row ++)
{
VaR cur = DT. Rows [row];
A. innerhtml + = "<li> <a href = 'javascript: void (0) 'type =" + cur. this_url + "id =" + cur. this_id + "onclick = 'getrssnews (this. type, this); 'oncontextmenu = 'Return showmyrightrssdiv (event); 'onfocus = 'this. blur (); '> "+ cur. this_title + "</a> </LI> ";
Document. getelementbyid ("pageindextd"). innerhtml = "& nbsp ;";
}
}
In Ajax, the number of rows for obtaining the datatable returned by the server is Dt. Rows. length, but Atlas is Dt. get_length ()
In ajax.net, a row is Dt. Rows [I], while Atlas is Dt. getitem (I)
In ajax.net, a column in a row is DT. rows [I]. title, where title is the column name, and Atlas is DT. getitem (I ). getproperty ("title"), where title is the column name
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.