場景:我有一個網站,在文章的詳細信息部分,當我從api獲取詳細信息時,有腳本和標簽,這些標簽是視頻的來源。問題:加載我的組件時。文章詳情取自 api ,但不執行腳本標簽。這是獲取正確詳細信息的方法嗎?如何運行這些腳本?export const DetailBlog = ({content}) => { return ( content ? <article className="article__detail"> <div className="article_detail__content" dangerouslySetInnerHTML={{__html: content.description}}/> <article> : null )};
從api獲取數據后運行腳本標簽
慕村9548890
2021-06-10 18:08:52