var str = '\home\index';var reg = /\\/g;str.replace(reg, '/');我想把字符串變成'/home/index',但是為什么沒有成功?
js正則表達式的問題?
大話西游666
2018-10-20 14:09:21