Excuse me, can this kind of code still be optimized?

        if (resState == 8) {//
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        } else if (resState == 9) {
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        } else if (resState == 10) {
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        } else if (resState == 11) {
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        } else if (resState == 12) {
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        } else if (resState == 13) {
            li_one.appendTo("-sharphaved .ul-list");
            li_one.find(".status").html("");
        }

as above, how efficient is the execution of this kind of code? Mengxin asks for advice on crabs

Nov.12,2021

execution efficiency is fine, just simplify the code

  

jquery should give up.. Walk into the arms of vue and react

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-1c28536-33060.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-1c28536-33060.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?