wk_utils
Version:
一个轻便、快捷、实用的成长型自定义工具函数库
24 lines (22 loc) • 752 B
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>demo</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script src="../dist/wkUtils.js"></script>
<script>
let arr = [3,5,7,2,1,9,8,4,6]
// console.log(wkUtils.bubbleSort(arr))
// console.log(wkUtils.selectionSort(arr))
// console.log(wkUtils.quickSort(arr))
// console.log(wkUtils.insterSort(arr))
// console.log(wkUtils.insterSort_for(arr))
// console.log(wkUtils.shellSort(arr))
console.log(wkUtils.mergeSort(arr))
</script>
</body>
</html>