Javascript split() not working in IE

前端 未结 3 1611
情歌与酒
情歌与酒 2021-01-20 01:12

Lets say I have a textarea with this text:

  1. first line some text.
  2. second line, other text. next line will be empty.
  3. (empt
3条回答
  •  执念已碎
    2021-01-20 01:53

    Possible duplicate of JavaScript: split doesn't work in IE? ? Internet Explorer excludes almost all empty values from the resulting array (e.g., when two delimiters appear next to each other in the data, or when a delimiter appears at the start or end of the data).

提交回复
热议问题