suchen

Heim  >  Fragen und Antworten  >  Hauptteil

javascript - Backbone.js项目,在访问MongoDB时,除了通过REST API,还有其他方式吗?

backbone.js+node.js+mongodb的项目,现在用backbone.model访问mongodb的REST API来完成数据读写。有没有其他的方式来完成数据读写了?

访问流程图如下:

伊谢尔伦伊谢尔伦2895 Tage vor591

Antworte allen(2)Ich werde antworten

  • PHPz

    PHPz2017-04-10 12:49:41

    重写Backbone.sync方法,实现你自己的数据访问接口

    Antwort
    0
  • 迷茫

    迷茫2017-04-10 12:49:41

    看到前后端开始用同一个库了,真好。。 // 这只是感叹

    Antwort
    0
  • StornierenAntwort