Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the ASP.NET AJAX programming model?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what is the ASP.NET AJAX programming model". In the daily operation, I believe many people have doubts about what the ASP.NET AJAX compiling model is. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what is the ASP.NET AJAX compiling model?" Next, please follow the editor to study!

Using Closure is a bruise of previous Atlas, which greatly affects the performance of the entire application. Now the way to define a class is to use ASP.NET AJAX, which is different from the definition of a class "on the surface". It is mentioned in the document that if you are defining a class that will not be derived, you can use closure, but we should still use prototype completely. This involves various aspects such as standard compliance, performance and scalability. Similarly, unless it is really necessary, we should not access a method with a prefix "_" in an object, which is considered to be a private member.

"playing cards by rules" can provide higher maintainability. Isn't the client-side programming model provided by Microsoft ASP.NET AJAX, and even the reason for using closure to define classes in previous Atlas, to move closer to the server-side programming model? JavaScript Extensions (Client BCL)

The CTP version includes a series of extensions to JavaScript built-in objects, which will remain in the RTM version. However, they have been redesigned to avoid potential conflicts with other AJAX frameworks. In the RTM version, the extension to Array's prototype is removed, making it static members of type Array, which work by passing in Array objects.

In the CTP version, there is a basic error handling, but it has been extended. The RTM version carefully extends ASP.NET AJAX's prototype, thus providing "strongly typed" errors. Component developers in particular need to throw errors (typical debug scripts). In the RTM version, you can catch exceptions to supplement them with more detailed error information. The following code provides an example of the most basic error handling, demonstrating how to catch an error and provide more detailed error information:

FunctioncheckRange (index) {if (index > 10) | index

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report