In MicrosoftAjax.js, you can find
Type.prototype.registerClass = function Type$registerclass (typeName, BaseType, Interfacetypes)
Here, type points to a Funtion object Wallis.animal, which has a prototype method registerclass when it is created, which means that the ASP.net AJAX client framework maintains an internal object, The inner object contains all the classes that are registered in the frame. This allows the user to perform Run-time class reflection queries, this and. NET class reflection query is similar. This also means that each class registered to the ASP.net AJAX client framework retains its corresponding metadata information, such as the type name, in the internal domain such as _typename. As a result, the user can perform Run-time object reflection.
With JavaScript alone, you don't need to register, but you can't use some of the AJAX mechanisms.
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