如何在javascript中匹配反斜杠呀,最好有例子
如题,郁闷了一天了
------解决方案--------------------
var s= "c:\\abc\\efc\\ofc.doc ";
var p = s.lastIndexOf( "\\ ");
s = s.substring(p+1,s.length);
alert(s)
查询谷 - www.chaxungu.com
怎么在javascript中匹配反斜杠呀,最好有例子
编辑:chaxungu时间:2022-10-02 23:20:20分类:web开发