python 陣列
response['data'] = {'id': album.id, 'pcate': album.pcate, 'photo_list': album.photo_list, 'pid': album.pid, 'pname': album.pname}
前端用法:
var photo_list = response.data.photo_list;
data.append({'id': id, 'pid': pid, 'pname': pname, 'pcate': pcate})
var photo_list = response.data.photo_list;
前端用法:
var photo_list = response.data[0].id;
前端用法:
var photo_list = response.data.photo_list;
data.append({'id': id, 'pid': pid, 'pname': pname, 'pcate': pcate})
var photo_list = response.data.photo_list;
前端用法:
var photo_list = response.data[0].id;
留言
張貼留言