if($(".ing>img").hasClass("show")){
                    
}else{
    $(".ing>img").addClass("show");
}  
if($(".ing>img").hasClass("show")){
                    
}else{
    $(".ing>img").addClass("show");
} directly  $(".ing > img"). AddClass ("show"); , jq will determine whether the element className has show 
 jq. If you really want to optimize it, use the ternary operator  < >: < >  
 with toggleClass, jquery1.8.3 and 
 seem to have been in which version.					
Previous: Vue starts babel to report an error