我正在尝试使用angularJS query()方法从数据库中获取特定数据
note=notif.query({book_id: bk_id, user_id: u_id});
但我用
进行测试的console.log(注释);
这就是我得到的json数据
[{"id":4,"user_id":8,"book_id":9,"like":true,"admin_id":1,"created_at":"2014-12-24T13:59:38.000Z","updated_at":"2014-12-24T13:59:38.000Z"},{"id":5,"user_id":8,"book_id":9,"like":true,"admin_id":1,"created_at":"2014-12-24T14:01:09.000Z","updated_at":"2014-12-24T14:01:09.000Z"},{"id":6,"user_id":8,"book_id":9,"like":true,"admin_id":1,"created_at":"2014-12-24T14:01:41.000Z","updated_at":"2014-12-24T14:01:41.000Z"},{"id":7,"user_id":8,"book_id":20,"like":true,"admin_id":1,"created_at":"2014-12-24T14:02:42.000Z","updated_at":"2014-12-24T14:02:42.000Z"}]