在VS运行出现Microsoft JScript 运行时错误: 对象不支持此属性或方法! 5
<scripttype="text/javascript">varMain=Main||{};jQuery(window).load(function(){window....
<script type="text/javascript">
var Main = Main || {};
jQuery(window).load(function () {
window.responsiveFlag = jQuery('#responsiveFlag').css('display');
Main.gallery = new Gallery();
jQuery(window).resize(function () {
Main.gallery.update();
});
});
function Gallery() {
var self = this;
container = jQuery('.flexslider'),
clone = container.clone(false);
this.init = function () {
if (responsiveFlag == 'block') {
var slides = container.find('.slides');
slides.kwicks({
max: 500,
spacing: 0
}).find('li > a').click(function () {
return false;
});
} else {
container.flexslider();
}
}
this.update = function () {
var currentState = jQuery('#responsiveFlag').css('display');
if (responsiveFlag != currentState) {
responsiveFlag = currentState;
container.replaceWith(clone);
container = clone;
clone = container.clone(false);
this.init();
}
}
this.init();
}
</script>
错在
container = jQuery('.flexslider'),
clone = container.clone(false); 展开
var Main = Main || {};
jQuery(window).load(function () {
window.responsiveFlag = jQuery('#responsiveFlag').css('display');
Main.gallery = new Gallery();
jQuery(window).resize(function () {
Main.gallery.update();
});
});
function Gallery() {
var self = this;
container = jQuery('.flexslider'),
clone = container.clone(false);
this.init = function () {
if (responsiveFlag == 'block') {
var slides = container.find('.slides');
slides.kwicks({
max: 500,
spacing: 0
}).find('li > a').click(function () {
return false;
});
} else {
container.flexslider();
}
}
this.update = function () {
var currentState = jQuery('#responsiveFlag').css('display');
if (responsiveFlag != currentState) {
responsiveFlag = currentState;
container.replaceWith(clone);
container = clone;
clone = container.clone(false);
this.init();
}
}
this.init();
}
</script>
错在
container = jQuery('.flexslider'),
clone = container.clone(false); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询