我正在尝试获取数组中的变量值,以将其存储为全局变量,以便在集合运行器上重用。问题是这个变量数据没有暴露在任何响应数据上。
$scope.loadWorkAreasAndMenu = function (callback) {
$('.modal-backdrop').hide();
var workSpaceIdQs = GetParameterValues('WorkSpaceId');
var workspaceId = null;
if (workSpaceIdQs != undefined && workSpaceIdQs.trim().length != 0) {
workspaceId = workSpaceIdQs;
}
var jsonMenu = JSON.stringify({
slotToken: window.top.Token,
workspaceId: workspaceId,
viewPortType: currentViewport
});
var serviceData = {
serviceName: "GetWorkAreasAndMenu",
serviceInputs: LZString.compressToEncodedURIComponent(jsonMenu)
};
var config = {
headers: {
'Content-Type': "application/json"
}
};
我需要捕获变量“serviceInputs”,但问题是它没有在任何响应数据中公开。我们如何在运行时执行本身期间检索此值?