[1, 55, 77, 88] // ...would return [55, 77, 88]
Run Code Online (Sandbox Code Playgroud)
添加其他示例:
[1, 55, 77, 88, 99, 22, 33, 44] // ...would return [88, 99, 22, 33, 44]
[1] // ...would return []
Run Code Online (Sandbox Code Playgroud) 我有一个二进制值列表作为不同长度的字符串,但我需要从每个值切掉最后18个字符.因此,在下面的示例中,粗体是需要保留的.
11001 000000000000001010
110 000000001101011100
使用JavaScript的方法是什么?