JavaScript Object Model

Letzte Änderung: Montag, 20. Juni 2011

Gilt für: SharePoint Foundation 2010

The ECMAScript (JavaScript, JScript) object model was introduced in Microsoft SharePoint Foundation 2010 along with the managed and Silverlight client object models. The JavaScript object model enables you to work with objects without deploying code on the server. Being able to work with objects on the client side is useful when deploying a Lösung mit eingeschränkter Sicherheitsstufe or working with the Menüband für die Serverkomponente. Due to the nature of JavaScript, all code is executed asynchronously and relies on callback functions to work with objects inside of SharePoint Foundation 2010. JavaScript can work only with objects in the current context. That is, there is no ability to do cross-site scripting or access objects outside of the current context.

To minimize stress on the server, not all object properties are loaded when an object is created. You will have to request specific properties using Include statements and the load(clientObject) function. You can read more about working with objects in Übersicht über den Datenabruf. JavaScript does not support properties as in the managed client object model. The JavaScript object model exposes properties using methods that are prepended with set_ and get_ based on the ability to retrieve or set the value of that property. The ECMAScript-Klassenbibliothek contains reference material for objects and their properties. Due to the similarities between the managed object model and the JavaScript object model, there are shared topics covering information that applies to both. The following topics are shared across the managed and JavaScript object model. For information on the differences between the managed and JavaScript object models, see Unterschiede zwischen verwalteten und ECMAScript-Objektmodellen.

Inhalt dieses Abschnitts

Common Programming Tasks in the JavaScript Object Model

Referenz

Objektmodellhierarchie und Objektidentität

Clientkontext als zentrales Objekt

Clientobjekte, Wertobjekte und skalare Eigenschaften

Übersicht über den Datenabruf

Erstellen von Clientobjekten

Richtlinien für das Clientobjektmodell

Unterschiede zwischen verwalteten und ECMAScript-Objektmodellen

Verwandte Abschnitte

ECMAScript-Klassenbibliothek