数组比大小

 array();

function array(){
    let arr =[];
$(".item .title").each(function () {
let content = $(this).innerHeight();
arr.push(content);
});
let max_height = 0;
for (let i = 0; i < arr.length-1; i++) {
if(max_height<arr[i]){
max_height = arr[i];
}
}
console.log(max_height);
$(".item .title").css("height",max_height/26+"rem");
}
原文地址:https://www.cnblogs.com/shoolnight/p/11997374.html