What is the difference between url vs urlRoot
问题 I would like to know what is the difference between using url or urlRoot . I have read the documentation (backbonejs.org/#Model-url), but I still feel that I lack knowledge in this area and I would like to know more. When do you have to use url ? And in another instance when do you have to use urlRoot ? 回答1: .urlRoot is only available in a Model, and is only useful when either a model is not part of a collection, or when you want to override the .url property of the collection which that