知道错哪里了~~·为什么我的data-setting console不出来
<div class="J_poster poster-main" data-setting='{
"width":1000,
"height":270,
"posterWidth":640,
"posterHeight":270,
"scale":0.9,
"speed":500,
"verticalAlign":"middle"
}'>
;(function($){
var Carousel=function(poster)
{
//alert(poster);
console.log(poster.attr("data-setting"));
}
Carousel.prototype={};
Carousel.init=function(posters){
var th=this;
posters.each(function(){
new Carousel($("this"));
})
};
window['Carousel']=Carousel;
})(jQuery)