DB.users.get_all(function(response){
this.setState(result: response); // not required
return response // required but not working for react-native-db-model
});
我可以從此方法返回響應嗎?我正在使用react-nat
我是新來反應js.我只是通過ajax獲取數據並操作component.But中的數據。但總是我越來越undefined.I知道我的ajax調用正在工作,但我不知道如何處理該數據在組件中。 App.js var React = require('react');
var Actions = require('../actions');
var Store = require('../stores