这些路径的URL,我的服务器有: GET /watchlists
GET /watchlists/:id
POST /watchlists // Create a new watchlists
PUT /watchlists/:id // Change attributes of watchlists (Like name)
POST /watchlists/:id/movies // A
我有一个通用的视图,除了6种不同类型的模型。 我创建视图,并通过在这样的模型: var view = new MyView({
model: myModelType //can be 1 of 6 different model types
});
在视图中,我需要显示一个子视图,但仅当该模型是某种类型的不。 在视图中,我只提到像'this.model'这样的模型。有没有办法