【发布时间】:2015-08-19 08:50:41
【问题描述】:
我在钛移动应用程序中从我的 wordpress 类别中获取数据,我有 5 个类别如何设置这 5 行的背景? 这是我的类别 JS
$.init = function() {
var rows = [];
getCategories(function(_data) {
for (var x = 0; x < _data.length; x++) {
rows.push(Alloy.createController('category-item', {
data : _data[x]
}).getView());
}
$.categories_table.setData(rows);
APP.Loading.hide();
});
这个分类项目
$.c_title.text = args.data.name ;
$.c_counts.text = args.data.count ;
$.row.Item = args.data;
【问题讨论】:
标签: titanium row titanium-alloy appcelerator-mobile