代碼如下:
復制代碼 代碼如下:
function numInstring(str){
str=str
var strArr=str
var result=[]
for(var i=
if(str
beforeLength=str
reg=new RegExp(strArr[i]
str=str
afterLength=str
result
}
}
return result;
}
var result=numInstring("This section of the site is dedicated to the JavaScript language itself
console
/*result:
["T:
*/
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20327.html