SOURCE

console 命令行工具 X clear

                    
>
console
cola(function (model) {
		 model.set("items", [
                {color: "blue", content: "Blue"},
                {color: "red", content: "Red"},
                {color: "yellow", content: "Yellow"},
                {color: "orange", content: "Orange"}
            ]);      
});
<c-carousel id="carousel1"  bind="item in items"  height="400">
  <template>
        <a href="#" style="display:block" c-class="item.color+'-background'" c-bind="item.content"></a>
    </template>
</c-carousel>
#carousel1 > .items-wrap > a {
            font-size: 40px;
            color: #fff;
            padding-top: 188px;
  					text-align:center;
          display:block;
}

本项目引用的自定义外部资源