SOURCE
JavaScript
Result
var str='1\r\n2'; var ListItems = str.split(/[(\r\n)\r\n]+/); console.log(ListItems);
console 命令行工具
X
clear
>
console