我正在使用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有"包含"运算符吗?
小智 14
好的语法是:
[site url]/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title)
Run Code Online (Sandbox Code Playgroud)
所有运营商都列在这里:http: //msdn.microsoft.com/en-us/library/cc907912.aspx