2024年08月02日
let treeOneChecked2 = []//把自己的数组放进去
//找出相同数组
function duplicates(treeOneChecked2) {
var newArr=[];
treeOneChecked2.sort();
for(var i =0;i<treeOneChecked2.length;i++){
if(treeOneChecked2[i]==treeOneChecked2[i+1
2024年08月02日
获取当前页面的缩放值,来修改样式!
function detectZoom (){
var ratio = 0,
screen = window.screen,
ua = navigator.userAgent.toLowerCase();
if (window.devicePixelRatio !== undefined) {
ratio = window.devicePixelRatio;
}
e