标签:div bsp ring split nbsp spl ons after code
JS字符串截取 “指定字符” 前面和后面的内容!
var string= "07/12" var before = string.split(‘/‘)[0] var after = string.split(‘/‘)[1] console.log(before,after) // 07 12
标签:div bsp ring split nbsp spl ons after code
原文地址:https://www.cnblogs.com/silent007/p/9306464.html