Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想解码这样的字符串:\u003cPoint x\u003d\"214\"
为此目的最好的javascript库是什么?
你可以用这个
var x = "\u003cPoint x\u003d\"214\""; var r = /\\u([\d\w]{4})/gi; x = x.replace(r, function (match, grp) { return String.fromCharCode(parseInt(grp, 16)); } ); x = unescape(x); console.log(x);