下面是我用来从表中获取数据的代码。这段代码在 azure classic(OLD) 门户中可以正常工作。但在新门户中似乎不起作用。我尝试了所有可能的语法来做到这一点,但没有任何效果。 帮助表示赞赏!
someTable.select('id','Name')}).read({
success: function(results) {
//rest of the code
}
});
最佳答案
花了这么多天我终于找到了答案。
在azure新门户中,他们更改了编写Easy table脚本和Api脚本(自定义API)的语法。希望我的回答对您有所帮助。
request.azureMobile.tables('someTable').select('id','name').where({
// your conditions
}).read().then(function (results) {
//rest of the code
}
});
如果您在 Azure 新门户中发现任何问题,请检查下面给出的链接。
https://shellmonger.com/30-days-of-azure-mobile-apps-the-table-of-contents/
https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/
关于azure - 如何在 AZURE EASY API 中编写选择函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40418786/