slice() omits the end index and selects the last element by default
半圈不直会旋转的爱~
半圈不直会旋转的爱~ 2018-06-07 10:51:50
0
2
1633

$("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

半圈不直会旋转的爱~
半圈不直会旋转的爱~

鬼鬼我是真的秀~!!

reply all(1)
小皮

What is the extra comma for?

  • reply 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.
    半圈不直会旋转的爱~ author 2018-06-07 18:55:07
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template