Home > Q&A > body text
$("li").slice(1).css("border","1px solid red"); //This works
$("li").slice(1,) .css("border","1px solid red");//This will report an error and has no effect
PHP中文网2018-06-07 15:21:03
What is the extra comma for?
I saw that the second way of writing in the video was to add a comma, but it had no effect when I used it ~ so I changed to the first way.