[![在此輸入圖像描述][1]][1]我有1個數(shù)組字符串包含許多圖像URL,如何將其顯示在應用程序中/ ld + json請幫我解決這個問題!謝謝大家!這是可變類型切片包含許多圖像網(wǎng)址images := []string{ "abc.com/1.jpg", "abc.com/2.jpg", "abc.com/3.jpg", "...", }這是用 html 格式的腳本<script type="application/ld+json">{ "@context": "https://schema.org", "@type": "NewsArticle", "mainEntityOfPage": { "@type": "WebPage", "@id": "{{$currentUrl}}" }, "headline": "{{$postTile}}", "image": [ "*i want show imageUrl at here*", "*i want show imageUrl at here*", "*i want show imageUrl at here*", ]}
轉(zhuǎn)到模板: 如何打印數(shù)組[]字符串以<腳本類型=“application/ld+json”>
ibeautiful
2022-10-04 17:12:52