原声的JS
function addLoadEvent(fn){
var old = window.onresize;
if(typeof window.onresize != 'function'){
window.onresize = fn;
}else{
window.onresize = function(){
old();
fn();
}
}
};
addLoadEvent(order_analyzing.resize);
addLoadEvent(num_analyzing.resize);
addLoadEvent(merchandising.resize);
addLoadEvent(variety_analysis.resize);
jquery的
$(window).resize(function(){
order_analyzing.resize();
num_analyzing.resize();
merchandising.resize();
variety_analysis.resize();
});