请问下大家这种代码还能优化吗
```
        if (resState == 8) {//下
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("完场");
        } else if (resState == 9) {
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("推迟");
        } else if (resState == 10) {
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("中断");
        } else if (resState == 11) {
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("腰斩");
        } else if (resState == 12) {
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("取消");
        } else if (resState == 13) {
            li_one.appendTo("#haved .ul-list");
            li_one.find(".status").html("待定");
        }
```
如上,这种代码执行效率怎么样?萌新求指教蟹蟹
执行效率没什么问题，就是代码简化些吧
```
var textObj = { 8: "完场", 9: "推迟", 10: "中断", 11: "腰斩", 12: "取消", 13: "待定" }
if (textObj[resState]) {
  li_one.appendTo("#haved .ul-list")
  li_one.find(".status").html(textObj[resState])
}
```