Gets the character of the former JS / after values

= STR "12345? 789"
str.split ( "?") [0] Output 12345

str.split ( "?") [1] output to 789

   Explain: (split () designated delimiting character; [0] is taken in front of the divided value, [1] after dividing the latter takes a value "?")

Helpful welcome give me a message, thanks!

 

Guess you like

Origin blog.csdn.net/weixin_41760500/article/details/81251809