嘿,我有几串文字
let text = [
"<strong>Voiijer</strong>" +
"is a global community of explorers of all ages who create and share expeditions",
"Everyone is an explorer, now everyone can explore. Voiijer is for everyone, from students to scientists.",
"Voiijer is for the naturally curious. <br />To tell the story of the world.",
];
Run Code Online (Sandbox Code Playgroud)
我这样显示
<p>{text[index]}</p>
Run Code Online (Sandbox Code Playgroud)
索引是 carousal 元素的索引,但 html 元素仅显示为文本。有人知道如何解决这个问题吗?
| 归档时间: |
|
| 查看次数: |
931 次 |
| 最近记录: |