Split text using split method When writing an item, one function is to cut the text into arrays by spaces or newlines. In fact, only one sentence is needed var phone = "110 119 120"; phone.split(/[\s\n]/); // ["110", "119", "120"] The effect is as follows Eight blogs that year, we have been If the author does not indicate that it is an original article, please indicate the link and source of this article for reprinting Js uses split to split text by carriage return, line feed or space- https://www.barben.cn/code/577.html Like( eight )