我在运行以下代码时遇到了问题
if(str.endsWith('+') { alert("ends in plus sign") }
如何转义加号?我试过/\ +/,但它不起作用。
https://stackoverflow.com/questions/2789973
相似问题