后端字符串转数组(传输字符串)

lxf2023-03-18 13:17:01

知识在于总结,所以写下来!

例如,背景html字符串

Var htmlStr= "后台html字符串";

转码

Var html格式代码= decode html(html str);

只需调用下面的js方法

function decodeHtml(s) { var HTML_DECODE = { "<": "