JSOM - 在一个请求中加载多个 SharePoint 对象

JSOM - Load mutliple SharePoint objects in one request

有没有办法像这样在一个请求中加载多个对象:

var context = new SP.ClientContext.get_current();
                    this.web = context.get_web();
                    this.site = context.get_site();
                    var list = this.web.get_lists().getByTitle(window.sessionStorage.getItem('selectedContentType'));
                    var query = '<View Scope=\'RecursiveAll\'><Query>' + $('.camlQuery').val() + '</Query></View>';
                    var camlQuery = new SP.CamlQuery();
                    camlQuery.set_viewXml(query);
                    this.items = list.getItems(camlQuery);
                    context.load(this.site);
                    context.load(this.items, 'Include(ID,DocIcon,LinkFilename,FileRef,FileLeafRef,Title,ContentType,SupplierPGProduct)');
                    context.executeQueryAsync(Function.createDelegate(this, get_Data_onSuccess), Function.createDelegate(this, get_Data_onFailure));
                }

在这个例子中,我的意思是 this.sitethis.items 在一个异步请求中? 或者我是否必须先加载 this.site 并在请求成功后加载 this.items?

我在 sharepoint.stackexchange 中找到了答案。 这是答案的link。

https://sharepoint.stackexchange.com/a/227984/47825