0
내가 HTML 페이지에서 객체의 배열을 표시 할
에서 객체의 배열을 인쇄, 그래서 나는이 한 :어떻게 유성 도우미
Template.home.helpers({
contents() {
var contentArray = [];
var content1 =
{
'contentName': 'test1',
'contentSize': 'test1',
'contentType': 'test1',
};
var content2 =
{
'contentName': 'test2',
'contentSize': 'test2',
'contentType': 'test2',
};
contentArray.push(content1);
contentArray.push(content2);
return contentArray;
}
});
가 어떻게 HTML 페이지의 "내용"을 표시 할 수 있습니까?
http://blazejs.org/guide/spacebars.html#Each-in을, 감사합니다! –