发布于 2023-10-10 14:55:16 浏览 168 次
var str = "<Hello, <World>";var decodedStr = str.replace(/<|</g, "<");console.log(decodedStr); // 输出 "<Hello, <World>"