Javascript 的 explode()
function SplitDemo() {var s, ss; var s = "The rain in Spain falls mainly in the plain."; // 在每個空格字符處進行分解。
ss = s.split(" "); return(ss);
} Reference: http://hi.baidu.com/dotku/blog/item/7858a6c2176ea31a0ff4775a.html
頁:
[1]