1 Star 0 Fork 84

那就好好的/前端77

forked from 万少/前端77 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
14-map和箭头函数结合.html 670 Bytes
Copy Edit Raw Blame History
万少 authored 2022-05-13 16:05 . map和箭头函数相结合
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no"
/>
<title>14-map和箭头函数结合.html</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
</style>
</head>
<body>
<script>
const arr = ['a', 'b', 'c'];
const newArr = arr.map((value) => `<li>${value}</li>`);
const newArr2 = arr.map(function (value) {
return `<li>${value}</li>`;
});
console.log(newArr);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lsk846420293/front-end-77.git
git@gitee.com:lsk846420293/front-end-77.git
lsk846420293
front-end-77
前端77
js高级第1天

Search

0d507c66 1850385 C8b1a773 1850385