如何在javascript中匹配反斜杠呀,最好有例子如题,郁闷了一天了[解决办法]var s= "c:\\abc\\efc\\ofc.doc "; var p = s.lastIndexOf( "\\ "); s = s.substring(p+1,s.length); alert(s)