style test

This commit is contained in:
kmdjs 2016-08-08 19:48:05 +08:00
parent 90028c97ef
commit e3fc96b70b
1 changed files with 2 additions and 2 deletions

View File

@ -13,14 +13,14 @@
this.childrenOptions = [{title: "Todo"}];
},
render: function () {
return ' <child nc-class="TodoTitle"></child>' +
return '<style>h3{font-size:40px;}</style> <h3>复式房建设经费</h3><child nc-class="TodoTitle"></child><style>h3{color:green;}</style>' +
'<ul> {{#items}} <li>{{.}}</li> {{/items}}</ul>';
}
});
var TodoTitle = Nuclear.create({
render: function () {
return '<h3>{{title}}</h3>';
return '<style>h3{color:red;}</style><h3>{{title}}</h3>';
}
});