XrmServiceToolkit - A Microsoft Dynamics CRM 2011 & CRM 2013 JavaScript Library
http://xrmservicetoolkit.codeplex.com/documentation
特殊用法Create 和 Update
{ id: Id, logicalName: "new_entityname", type: "EntityReference" }; //Lookup
{ value: 100000000, type: "OptionSetValue" }; //Optionset
var updateResponse = XrmServiceToolkit.Soap.Update(ENTITY); //Update Method