0%

npm库-light-spinner

light-spinner: 控制台 loading

light-spinner-exp.js

1
2
3
4
5
6
7
8
9
10
11
12
const Spin = require('light-spinner').default
const spin = new Spin({
text: 'starting',
})

spin.start()
setTimeout(() => {
spin.text = 'started'
setTimeout(() => {
spin.stop()
}, 2000)
}, 2000)
ccc(1)