1// 设计稿宽度 2const designWidth = 1920; 3function setRem() { 4 const html = document.documentElement; 5 const clientWidth = html.clientWidth; 6 if (clientWidth) { 7 html.style.fontSize = (clientWidth / designWidth) * 100 + "px"; 8 } 9} 10// åå§å 11setRem(); 12// çå¬çªå£å¤§å°åå 13window.addEventListener("resize", setRem); 14window.addEventListener("pageshow", function (e) { 15 if (e.persisted) { 16 setRem(); 17 } 18});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.