87,909
社区成员
发帖
与我相关
我的任务
分享
$(function () {
//设置 内容 宽
setFitWH();
var debounce = function (func, threshold, execAsap) {
var timeout;
return function debounced() {
var obj = this, args = arguments;
function delayed() {
if (!execAsap)
func.apply(obj, args);
timeout = null;
};
if (timeout)
clearTimeout(timeout);
else if (execAsap)
func.apply(obj, args);
timeout = setTimeout(delayed, threshold || 100);
};
// alert("yes");
}
$(window).resize(function () {
debounce(function () {
$("[class='panel-body panel-body-noheader panel-body-noborder']").css("width:'atuo',height:'auto'");
}, 100, true);
});
});
$(function () {
//设置 内容 宽
setFitWH();
var debounce = function (func, threshold, execAsap) {
var timeout;
return function debounced() {
var obj = this, args = arguments;
function delayed() {
if (!execAsap)
func.apply(obj, args);
timeout = null;
};
if (timeout)
clearTimeout(timeout);
else if (execAsap)
func.apply(obj, args);
timeout = setTimeout(delayed, threshold || 100);
};
// alert("yes");
}
$(window).resize(function () {
debounce(function () {
$("[class='panel-body panel-body-noheader panel-body-noborder']").css("width:'atuo',height:'auto'");
}, 100, true);
});
}());