1
0
mirror of https://gitee.com/coder-xiaomo/algorithm-visualization synced 2025-09-10 14:31:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

添加ConsoleClear方法

This commit is contained in:
2022-05-18 19:30:15 +08:00
parent 1d0c253db4
commit e3f47b5bc3
3 changed files with 34 additions and 11 deletions

View File

@@ -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} 的两个元素`)
})
}