function adaptor() {
//为了便于计算,这里以1920px为基准 1920 * 937 情况下 1rem = 100px
let width = document.body.clientWidth
let fontSize = document.getElementsByTagName('html')[0].style.fontSize = width / 19.2 + "px";
}
adaptor();
window.onresize = function () {
adaptor()
}