Zem*_*nik 2 javascript regex unicode
我需要从字符串中删除"↵"字符,但是我从RegExp中得到了一些奇怪的行为.有人可以解释一下:
var str = "?Since we are starting our webservice...";
alert(str.charAt(0))
alert(str.charCodeAt(0));
alert(/\u8629/.test("?"));
Run Code Online (Sandbox Code Playgroud)
字符串对象方法告诉我"↵"的unicode代码是8629,但RegExp说不是这种情况.