SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
var myString = quot;A string quot;;
            Microsoft AJAX Library: String Type Extensions                                           myString = myString.trim();
                                                                                                     // myString = quot;A stringquot;

                                                                                                     String.trimStart ()
String. endsWith (suffix)
                                                                                                     Returns a copy of the string with all white-space characters removed from the
Determines whether the end of a String object matches a specified string. The
                                                                                                     startof the string. Examples of white space characters are spaces and tabs.
function is case sensitive.
                                                                                                     var myString = quot;   A stringquot;;
var isTxt = myString.endsWith (quot;some_file.txtquot;, quot;.txtquot;);
                                                                                                     myString = myString.trim();
// isTxt = true
                                                                                                     // myString = quot;A stringquot;
String.format (format, args)
Replaces each format item in a String object with the text equivalent of a
                                                                                                               Microsoft AJAX Library: Object Type Extensions
corresponding object's value.
Remarks
                                                                                                     Object.getType (instance)
args can contain a single object or an array of objects. format contains zero or
                                                                                                     Returns the type of a specified object instance. See also Object.getTypeName ().
more runs of fixed text intermixed with one or more format items. At run time,
each format item is replaced by the string representation of the corresponding                       Object.getTypeName (instance)
object in the list.
                                                                                                     Returns a string that identifies the run-time type name of an object. The type name
var user = {                                                                                         is returned as a string representing the fully qualified type name.
    FirstName: 'John',
                                                                                                     Type.registerNamespace(quot;Samplesquot;);
    LastName : 'Doe',
    DOB: new Date (1975, 1, 17) };
                                                                                                     // Define and register a Samples.Rectangle class.
var label = String.format (quot;User name: {0} {1}, born {2:d}quot;,                                         Samples.Rectangle = function(width, height) {
                            user.FirstName, user.LastName, user.DOB));                                    this._width = width;
                                                                                                          this._height = height;
// label = quot;User name: John Doe, born 02/17/1975quot;
                                                                                                     }
String.localeFormat (format, args)                                                                   Samples.Rectangle.registerClass(quot;Samples.Rectanglequot;);
Replaces the format items in a String object with the text equivalent of a
corresponding object's value. The current culture is used to format dates and                        var a = new Samples.Rectangle(200, 100);
                                                                                                     var name = Object.getTypeName(a);
numbers. See also String.format ().
                                                                                                     var type = Object.getType (a);
String.startsWith (prefix)                                                                           Sys.Debug.trace (quot;The type name of object quot;aquot; is: quot; + name);
Determines whether the start of a String object matches a specified string. The                      Sys.Debug.traceDump (type);
function is case sensitive. See also String.endsWith ().
                                                                                                     /* The result is:
String.trim ()                                                                                         The type name of object quot;aquot; is: Samples.Rectangle
Returns a copy of the string with all white-space characters removed from the start                    traceDump {Function}
and end of the string. Examples of white space characters are spaces and tabs.                         prototype {Samples.Rectangle}
                                                                                                           __typeName: Samples.Rectangle
var myString = quot; A string quot;;                                                                               __class: true
myString = myString.trim();                                                                          */
// myString = quot;A stringquot;

String.trimEnd ()
Returns a copy of the string with all white-space characters removed from the end
of the string. Examples of white space characters are spaces and tabs.
   A function is static and is invoked without creating an instance of the object   Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24

Más contenido relacionado

La actualidad más candente

11. session 11 functions and objects
11. session 11   functions and objects11. session 11   functions and objects
11. session 11 functions and objectsPhúc Đỗ
 
Introduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita GanesanIntroduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita GanesanKavita Ganesan
 
Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packagesSardar Alam
 
Anton Kasyanov, Introduction to Python, Lecture5
Anton Kasyanov, Introduction to Python, Lecture5Anton Kasyanov, Introduction to Python, Lecture5
Anton Kasyanov, Introduction to Python, Lecture5Anton Kasyanov
 
L13 string handling(string class)
L13 string handling(string class)L13 string handling(string class)
L13 string handling(string class)teach4uin
 
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useJava chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useMukesh Tekwani
 
String Builder & String Buffer (Java Programming)
String Builder & String Buffer (Java Programming)String Builder & String Buffer (Java Programming)
String Builder & String Buffer (Java Programming)Anwar Hasan Shuvo
 
What is String in Java?
What is String in Java?What is String in Java?
What is String in Java?RAKESH P
 
L14 string handling(string buffer class)
L14 string handling(string buffer class)L14 string handling(string buffer class)
L14 string handling(string buffer class)teach4uin
 
5. c sharp language overview part ii
5. c sharp language overview   part ii5. c sharp language overview   part ii
5. c sharp language overview part iiSvetlin Nakov
 

La actualidad más candente (20)

11. session 11 functions and objects
11. session 11   functions and objects11. session 11   functions and objects
11. session 11 functions and objects
 
Java Script Introduction
Java Script IntroductionJava Script Introduction
Java Script Introduction
 
Introduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita GanesanIntroduction to Java Strings, By Kavita Ganesan
Introduction to Java Strings, By Kavita Ganesan
 
Arrays string handling java packages
Arrays string handling java packagesArrays string handling java packages
Arrays string handling java packages
 
Anton Kasyanov, Introduction to Python, Lecture5
Anton Kasyanov, Introduction to Python, Lecture5Anton Kasyanov, Introduction to Python, Lecture5
Anton Kasyanov, Introduction to Python, Lecture5
 
L13 string handling(string class)
L13 string handling(string class)L13 string handling(string class)
L13 string handling(string class)
 
Chapter 7 String
Chapter 7 StringChapter 7 String
Chapter 7 String
 
Java String
Java String Java String
Java String
 
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useJava chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
 
Java Strings
Java StringsJava Strings
Java Strings
 
String Builder & String Buffer (Java Programming)
String Builder & String Buffer (Java Programming)String Builder & String Buffer (Java Programming)
String Builder & String Buffer (Java Programming)
 
C# overview part 2
C# overview part 2C# overview part 2
C# overview part 2
 
What is String in Java?
What is String in Java?What is String in Java?
What is String in Java?
 
Strings in Java
Strings in JavaStrings in Java
Strings in Java
 
L14 string handling(string buffer class)
L14 string handling(string buffer class)L14 string handling(string buffer class)
L14 string handling(string buffer class)
 
About Python
About PythonAbout Python
About Python
 
Scala Paradigms
Scala ParadigmsScala Paradigms
Scala Paradigms
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Strings
StringsStrings
Strings
 
5. c sharp language overview part ii
5. c sharp language overview   part ii5. c sharp language overview   part ii
5. c sharp language overview part ii
 

Destacado

Ms Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean ExtensionsMs Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean Extensionsjason hu 金良胡
 
Ms Ajax Number And Error Extensions
Ms Ajax Number And Error ExtensionsMs Ajax Number And Error Extensions
Ms Ajax Number And Error Extensionsjason hu 金良胡
 
PròXim Orient
PròXim  OrientPròXim  Orient
PròXim Orientxavitu_bdn
 
Prix Essence
Prix EssencePrix Essence
Prix Essencebbgora
 
Pueblos bárbaros modificada
Pueblos bárbaros modificadaPueblos bárbaros modificada
Pueblos bárbaros modificadaAndrea Rodriguez
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim OrientBarragan
 

Destacado (8)

Ms Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean ExtensionsMs Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean Extensions
 
Ms Ajax Number And Error Extensions
Ms Ajax Number And Error ExtensionsMs Ajax Number And Error Extensions
Ms Ajax Number And Error Extensions
 
Ms Ajax Dom Event Class
Ms Ajax Dom Event ClassMs Ajax Dom Event Class
Ms Ajax Dom Event Class
 
PròXim Orient
PròXim  OrientPròXim  Orient
PròXim Orient
 
Prix Essence
Prix EssencePrix Essence
Prix Essence
 
Ms Ajax Dom Element Class
Ms Ajax Dom Element ClassMs Ajax Dom Element Class
Ms Ajax Dom Element Class
 
Pueblos bárbaros modificada
Pueblos bárbaros modificadaPueblos bárbaros modificada
Pueblos bárbaros modificada
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim Orient
 

Similar a Ms Ajax String And Object Extensions

Similar a Ms Ajax String And Object Extensions (20)

package
packagepackage
package
 
String and string buffer
String and string bufferString and string buffer
String and string buffer
 
Computer programming 2 Lesson 12
Computer programming 2  Lesson 12Computer programming 2  Lesson 12
Computer programming 2 Lesson 12
 
Strings Arrays
Strings ArraysStrings Arrays
Strings Arrays
 
Strings.ppt
Strings.pptStrings.ppt
Strings.ppt
 
Strings in c
Strings in cStrings in c
Strings in c
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Chapter 9 - Characters and Strings
Chapter 9 - Characters and StringsChapter 9 - Characters and Strings
Chapter 9 - Characters and Strings
 
Struktur data 1
Struktur data 1Struktur data 1
Struktur data 1
 
Chap 8(strings)
Chap 8(strings)Chap 8(strings)
Chap 8(strings)
 
Java căn bản - Chapter9
Java căn bản - Chapter9Java căn bản - Chapter9
Java căn bản - Chapter9
 
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdfSTRINGS IN C MRS.SOWMYA JYOTHI.pdf
STRINGS IN C MRS.SOWMYA JYOTHI.pdf
 
Strings
StringsStrings
Strings
 
Strings
StringsStrings
Strings
 
Strings
StringsStrings
Strings
 
13string in c#
13string in c#13string in c#
13string in c#
 
java.lang.String Class
java.lang.String Classjava.lang.String Class
java.lang.String Class
 
C# String
C# StringC# String
C# String
 
Chapter3 basic java data types and declarations
Chapter3 basic java data types and declarationsChapter3 basic java data types and declarations
Chapter3 basic java data types and declarations
 
The Ring programming language version 1.9 book - Part 123 of 210
The Ring programming language version 1.9 book - Part 123 of 210The Ring programming language version 1.9 book - Part 123 of 210
The Ring programming language version 1.9 book - Part 123 of 210
 

Más de jason hu 金良胡 (18)

新员工培训
新员工培训新员工培训
新员工培训
 
Javascript 闭包
Javascript 闭包Javascript 闭包
Javascript 闭包
 
Windows Powershell En
Windows Powershell   EnWindows Powershell   En
Windows Powershell En
 
正则表达式
正则表达式正则表达式
正则表达式
 
Work In Japan
Work In JapanWork In Japan
Work In Japan
 
Linuxcommand
LinuxcommandLinuxcommand
Linuxcommand
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
Asp.Net运行时
Asp.Net运行时Asp.Net运行时
Asp.Net运行时
 
Fwunixref
FwunixrefFwunixref
Fwunixref
 
X Query
X QueryX Query
X Query
 
Sql2005 Xml
Sql2005 XmlSql2005 Xml
Sql2005 Xml
 
Ms Ajax Dom Element Class
Ms Ajax Dom Element ClassMs Ajax Dom Element Class
Ms Ajax Dom Element Class
 
Ms Ajax Array Extensions
Ms Ajax Array ExtensionsMs Ajax Array Extensions
Ms Ajax Array Extensions
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext Js Dom Navigation
Ext Js Dom NavigationExt Js Dom Navigation
Ext Js Dom Navigation
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext J S Observable
Ext J S ObservableExt J S Observable
Ext J S Observable
 
Ext Js Dom Helper
Ext Js Dom HelperExt Js Dom Helper
Ext Js Dom Helper
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Ms Ajax String And Object Extensions

  • 1. var myString = quot;A string quot;; Microsoft AJAX Library: String Type Extensions myString = myString.trim(); // myString = quot;A stringquot; String.trimStart () String. endsWith (suffix) Returns a copy of the string with all white-space characters removed from the Determines whether the end of a String object matches a specified string. The startof the string. Examples of white space characters are spaces and tabs. function is case sensitive. var myString = quot; A stringquot;; var isTxt = myString.endsWith (quot;some_file.txtquot;, quot;.txtquot;); myString = myString.trim(); // isTxt = true // myString = quot;A stringquot; String.format (format, args) Replaces each format item in a String object with the text equivalent of a Microsoft AJAX Library: Object Type Extensions corresponding object's value. Remarks Object.getType (instance) args can contain a single object or an array of objects. format contains zero or Returns the type of a specified object instance. See also Object.getTypeName (). more runs of fixed text intermixed with one or more format items. At run time, each format item is replaced by the string representation of the corresponding Object.getTypeName (instance) object in the list. Returns a string that identifies the run-time type name of an object. The type name var user = { is returned as a string representing the fully qualified type name. FirstName: 'John', Type.registerNamespace(quot;Samplesquot;); LastName : 'Doe', DOB: new Date (1975, 1, 17) }; // Define and register a Samples.Rectangle class. var label = String.format (quot;User name: {0} {1}, born {2:d}quot;, Samples.Rectangle = function(width, height) { user.FirstName, user.LastName, user.DOB)); this._width = width; this._height = height; // label = quot;User name: John Doe, born 02/17/1975quot; } String.localeFormat (format, args) Samples.Rectangle.registerClass(quot;Samples.Rectanglequot;); Replaces the format items in a String object with the text equivalent of a corresponding object's value. The current culture is used to format dates and var a = new Samples.Rectangle(200, 100); var name = Object.getTypeName(a); numbers. See also String.format (). var type = Object.getType (a); String.startsWith (prefix) Sys.Debug.trace (quot;The type name of object quot;aquot; is: quot; + name); Determines whether the start of a String object matches a specified string. The Sys.Debug.traceDump (type); function is case sensitive. See also String.endsWith (). /* The result is: String.trim () The type name of object quot;aquot; is: Samples.Rectangle Returns a copy of the string with all white-space characters removed from the start traceDump {Function} and end of the string. Examples of white space characters are spaces and tabs. prototype {Samples.Rectangle} __typeName: Samples.Rectangle var myString = quot; A string quot;; __class: true myString = myString.trim(); */ // myString = quot;A stringquot; String.trimEnd () Returns a copy of the string with all white-space characters removed from the end of the string. Examples of white space characters are spaces and tabs. A function is static and is invoked without creating an instance of the object Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24