backbone.js collection get vars

后端 未结 4 2015
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 20:28

This seems like an obvious one, but I\'m somehow missing it...

How do you send options along with a backbone.js collection fetch()?

Or, from a broader point of

4条回答
  •  北海茫月
    2021-01-31 21:25

    Override the "url" function of your collection and add the parameters (?param=xyz).

    The options parameter of fetch can also be used as it is the one passed along to the final jQuery ajax call. So if you add a "data" param there it will be used.

提交回复
热议问题