我使用 getJSON 从 SharePoint 检索列表项,如下所示:
[site url]/_vti_bin/listdata.svc/Keywords?filter=startswith(Title,'r')
我想更改它以检索此:
[site url]/_vti_bin/listdata.svc/Keywords?filter=contains(Title,'r')
失败了。 ListData.svc 是否有“包含”运算符?
最佳答案
好的语法是:
[site url]/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title)
此处列出了所有运算符: http://msdn.microsoft.com/en-us/library/cc907912.aspx
关于jquery - SharePoint ListData.svc "contains"字符串筛选运算符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11478513/