var str.="mapname:张三)李四)" str.substring(8).split(")");//这一句哪里错了 干 改成这样就对了 srt.replace('mapname:','').split(")");//