body {background-color: #c3c3c3}

lodash 库的用法

<!DOCTYPE html>
<html>
<head>
<title>Lodash Example</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
<script >

var array = [1];
var other = _.concat(array, 2, [3], [[4]]);

console.log(other);
// => [1, 2, 3, [4]]

console.log(array);
// => [1]


</script>
</body>
</html>

  

posted @ 2023-11-08 21:05  最美胡萝卜  阅读(27)  评论(0)    收藏  举报
body {background-color: #c3c3c3}