Is to group the same attribute values and add different styles to ask for help.

clipboard.png

clipboard.png

is to group the same attribute values and add different styles

Mar.23,2021

for loop to compare the current data with the next data. If different, call the method to generate the background color to add the background


var json = {},arr= [],color=[];
for(var i in json){
    if(arr[i].include(json[i].phone)){
        var j = arr.indexOf(json[i].phone);
        //
        obj.style.background = color[j]
    }else{
       var j = arr.length;
       arr.push(json[i].phone)
       obj.style.background = color[j]
    }
}
.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3d77-31ec6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3d77-31ec6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?