base.js
585 字节
! function (a) {
function b() {
var Length = document.documentElement.clientWidth;
var baseWidth = Length <= 1024 ? Length : 1024 < Length ? 750 : '';
document.documentElement.style.fontSize = baseWidth / 750 * 100 + 'px';
}
window.addEventListener("DOMContentLoaded", function () {
b()
}, !1), window.addEventListener("resize", function () {
b()
}), b()
}(window);
//回退
window.onload = function(){
var $back = document.getElementsByClassName('back')[0];
if($back){
$back.onclick=function(){
window.history.back()
}
}
}