mirror of
https://gitee.com/coder-xiaomo/algorithm-visualization
synced 2025-09-10 14:31:40 +08:00
添加ConsoleClear方法
This commit is contained in:
@@ -162,6 +162,9 @@ class Shape {
|
||||
type: "linkedList",
|
||||
oneUnit: oneUnit,
|
||||
gsapTimeline: gsap.timeline({
|
||||
onStart:function(){
|
||||
consoleClear()
|
||||
},
|
||||
onComplete: function () {
|
||||
consoleLog(`排序完成`)
|
||||
console.log("all done")
|
||||
@@ -332,7 +335,7 @@ class VectorAnimation {
|
||||
|
||||
// 比较数组元素
|
||||
compareLinkedListItems(id, index1, index2) {
|
||||
highlightLinkedListItems(id, [index1, index2], function () {
|
||||
this.highlightLinkedListItems(id, [index1, index2], function () {
|
||||
consoleLog(`比较索引为 ${index1} 和 ${index2} 的两个元素`)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user