let turtles = ['Leo','Mikey']; let desc = ` <ul> ${ turtles.map(turtle=>`<li>hello,this is ${turtle}</li>`).join('') } </ul> `; document.body.innerHTML = desc;
posted on 2018-06-15 16:27 沙滩海风 阅读(135) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 沙滩海风 Powered by .NET 9.0 on Kubernetes