<html>
<head>
<script src = "https://d3js.org/d3.v6.js"></script>
<!--<script src = "d3/d3.js"></script>-->
</head>
<body>
<div id="one"></div>
<script>
let a=[2,3,1,56,7,8];
d3.select("#one").text(d3.scan(ar, function ascending(a, b) { return a<b?-1:a>b?1:a=b?0:NaN; }));
</script>
</body>
</html>
想请教一下,这个代码中,ascending(a,b)部分中的a代表的是什么,b又代表的是什么?