简体   繁体   中英

Split function always returns empty array [Browserstack, IOS devices]

Steps for reproducing:

  1. Open any site using any IOS device on Browserstack
  2. Open DevTool
  3. Execute in console smth like "bla bla bla".split(" ")

Expected: (3) ["bla", "bla", "bla"]

In fact: []

Have anyone ever bumped into this issue?

It seems to be a limitation of the iOS Dev Tools on BrowserStack. However, you should be able to get the expected output by executing the command - console.log("bla bla bla".split(" "))

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM