简单的字符串操作
有这样的字符串:dasdasd/238ajsideqw
我如何获取/前后的两个字符串呀?
------解决方案--------------------var a = "dasdasd/238ajsideqw ";
alert(a.split( "/ ")[0]);
alert(a.split( "/ ")[1]);
------解决方案--------------------var s= "dasdasd/238ajsideqw ";
var s_arr=a.split( "/ ");
//结果
//s_arr[0]= "dasdasd ";
//s_arr[1]= "238ajsideqw ";