makeFileIntoBlob(_imagePath) {
return new Promise((resolve, reject) => {
window.resolveLocalFileSystemURL(_imagePath, fileEntry => {
fileEntry.file(file => {
var component = /* reference to ionic2 component */ ;
var img = document.createElement("img");
img.onload = () => {
var resizedImg = component.imgResizerSrvc.resize(this, 480, 480);
var imgBlob = new File([resizedImg], "sample.jpg", {
type: "image/jpeg"
});
resolve(imgBlob);
};
img.src = URL.createObjectURL(file);
});
});
});
}
我可以查询不包含空格的属性。
{
"Description": "Error",
"EventData": {
"AccountId": "123",
"Exception Message": "Data at the root level is invalid.",
"Error Type": "ExceptionThrown"
}
}
如何查询具有空格的属性。以下查询不起作用
Events | where Timestamp > ago(30min)
| project Data.EventData.AccountId
答案 0 :(得分:1)
数组格式接受引号。
Events | where Timestamp > ago(30min) | project Data.EventData.["Exception Message"]