tags: javascript front end
Used to divide a string into a string array.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>split()Segment string array</title>
<script type="text/javascript">
var str = "Are you going to Scarborough Fair?";
document.write(str.split(" ") + "<br />")
document.write(str.split("") + "<br />")
document.write(str.split("",8))
</script>
</head>
<body>
</body>
</html>

String format "123,345,124,1234,123,4" Segmentation Analysis into 123 345 124 1234 123 4 Dynamic open space Effect...
STRTOK provided by C ++ for string array segmentation, don't say, on the code: Output results:...
1, dynamic SQL method 2, the cycle interception method Reprinted at: https://www.jianshu.com/p/2825b4f9bd39...