console 命令行工具
X
clear
> Script error.
> Script error.
> Script error.
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" height="400">
<div class="items-wrap">
<a href="#" class="blue-background">Blue</a>
<a href="#" class="red-background" >Red</a>
<a href="#" class="yellow-background">Yellow</a>
<a href="#" class="orange-background"">Orange</a>
</div>
</c-carousel>
#carousel1 > .items-wrap > a {
font-size: 40px;
color: #fff;
padding-top: 188px;
text-align:center;
display:block;
}