题解 | #加粗文字#
加粗文字
http://www.nowcoder.com/practice/919c502e497f4c53a3f7c336beec7cb4
let p = document.getElementsByTagName("p")[0] p.innerHTML = p.innerText.replace("牛客网","<strong style='font-weight:999'>牛客网</strong>")
加粗文字
http://www.nowcoder.com/practice/919c502e497f4c53a3f7c336beec7cb4
let p = document.getElementsByTagName("p")[0] p.innerHTML = p.innerText.replace("牛客网","<strong style='font-weight:999'>牛客网</strong>")
相关推荐