SOURCE

let res = {
    noticeText: "基于业务UTOUCH启用业务需求稳定保障,自4月1日起,针对触达计划【启用】业务侧需优先知悉产品接入须知&产品使用白皮书,自评估需求属于实时性、高资损、高推送量、高危风控四类场景之一需组织线下评审。${accessDetail}    ${technicalSupport}",
    noticeUrlContent: [
        {
            name: "accessDetail",
            url: "https://aliyuque.antfin.com/dayu.gy/alimehotline/mg3rbymuqd1enp7i?singleDoc#",
            value: "接入须知查看详情"
        },
        {
            name: "technicalSupport",
            url: "https://tickets.alibaba-inc.com/goc-ticket/ticketCreate?id=34373",
            value: "产品答疑&技术支持入口点此提交"
        },
    ]
};

let noticeText = res.noticeText;
let noticeUrlContent = res.noticeUrlContent;

for (let i = 0; i < noticeUrlContent.length; i++) {
  let url = noticeUrlContent[i].url;
  let name = noticeUrlContent[i].name;
  let value = noticeUrlContent[i].value;
  let link = `<a target="_blank" href='${url}'>${value}</a>`;
  noticeText = noticeText.replace('${'+name+'}', link);
}

console.log(noticeText);
console 命令行工具 X clear

                    
>
console