刷新 javascript 而不重新加载页面代码:
$(window).resize(function() {
/* I do this for all elements
but it's better for you to refresh only the elements you need to */
setTimeout(function() {
jcf.destroyAll();
jcf.replaceAll();
}, 0);
});