我在从列表中检索项目时遇到了一些麻烦,程序应该检索用户提供的具有特定日期范围的项目列表。
这是我的示例代码:
function getItems(startDate, endDate){
var query =
"<Query>" +
"<Where>" +
"<And>" +
"<Eq>" +
"<FieldRef Name='Date' /><Value Type='Date'>" + > startDate + "</Value>" +
"</Eq>" +
"<Eq>" +
"<FieldRef Name='Date' /><Value Type='Date'>" + < startDate + "</Value>" +
"</Eq>" +
"</And>" +
"</Where>" +
"<OrderBy>" +
"<FieldRef Name='Start' Ascending='false' />" +
"</OrderBy>" +
"</Query>";
$().SPServices......
}