The following code doesn't seem to work fine on an android native web browser nor on Dolphin App.
"[1212,1212],[1212,11212]".match(/\d+,\d+/g)
When I alert this statement, it says "undefined"
String.match(regEx)
is not supported by most of mobile browsers.
Try String.split(",")
instead
[1212,1212],[1212,11212]".split(",") returns an array : [ "[1212,1212]", "[1212,11212]" ]
I hope this is what you're looking for.
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.