我有2個表: 1. transfer
2. data
表數據2個記錄:在 id name
1. 2 PQR
2. 3 XYZ
表調5條: id to from amount type
1. 1 2 3 100.00 C
2. 2 3 2 200.00 C
3. 3 2 3 150.00 D
4. 4 3 2 150.00 C
5. 5 2 3 300.00 D
我有我的應用程序,從遠程服務器獲取數據,並有get方法來檢索的數據導出到其他模塊的通用模塊。 讓我們假設該模塊的名稱爲MyData: define([], function(){
return function(opts) {
var data = null;
// go get data with ajax
var getData = funct