Integrating JSON feed with Backbone JS

前端 未结 2 1464
长情又很酷
长情又很酷 2021-02-04 20:36

I\'m currently working on a project where I type a keyword inside an input box and when I click send it hits a PHP server with a link like (localhost/json-status.php?query=

2条回答
  •  遥遥无期
    2021-02-04 21:07

    FYI (from the documentation)

    We've taken the opportunity to clarify some naming with the 0.5.0 release. Controller is now Router, and refresh is now reset.

    So if you are using the latest version dont forget to change refresh to reset in this line:

    this.status.bind("refresh", this.render);
    

提交回复
热议问题