mImg.style.width = tempImg.style.width; mImg.style.height = tempImg.style.height; mImg.src = tempImg.src; mImg.loaded = true; mImg.loading = null; this.onload = null; } tempImg.src = mImg.getAttribute('original'); } // 解决资源区的console问题 if (!("console" in window)) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; window.console = {}; for (var i = 0; i // 页面顶部js var no_refresh_url_prefix = '\/f?kw=ps&tp=0&pn=', no_refresh_match = location.hash.replace('#', '').match(/^\/pn=(\d+)/i); if (no_refresh_match) { // pn=xx 是用作无刷新路由 location.href = location.protocol + '//' + location.host + no_refresh_url_prefix + no_refresh_match[1]; }