<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>split()</title></head><body><script> var str="a/b/c/d/e/f/g/h";var arr=str.split("/")var strNew=arr.replace(",","-") document.write(arr); document.write("<br/>"); document.write(strNew);</script></body></html>这里哪里出错呢,谢谢
添加回答
举报
0/150
提交
取消