-2

Trigger.io has a forge.request module that takes care of cross-domain HTTP requests.

What's the cleanest way of integrating it into a backbone app?

It is possible to override the Sync method ( for example https://github.com/martindavis/trigger-backbone.sync )

But I don't feel very comfortable using a random plugin for something as important.

4

2 回答 2

0

你看过这个教程吗?

https://trigger.io/docs/current/recipes/javascript_libraries/example_project.html

于 2013-10-28T21:29:23.023 回答
0

只是跟进我自己的问题。我最终使用了 https://github.com/martindavis/trigger-backbone.sync并进行了一些修改 - 到目前为止一切都很好

于 2013-11-28T18:09:53.443 回答