Split a JavaScript string into fixed-length pieces

前端 未结 2 1724
再見小時候
再見小時候 2021-02-07 09:03

I would like to split a string into fixed-length (N, for example) pieces. Of course, last piece could be shorter, if original string\'s length is not multiple of N<

2条回答
提交回复
热议问题