2017-04-06 36 views

回答

2

read API expects a map of options作为第二个参数中,

oModel1.read("/LinesSet", { 
    urlParameters: { 
     "$expand": "ToCells" 
    }, 
    success: this.onSuccess.bind(this), 
    // ... 
}); 

urlParameters:我们可以使用属性urlParameters定义任何查询将含有参数映射,将作为查询字符串传递

只是不要忘了包括$expand前,表明它是一个系统查询。否则,它将被计为自定义查询