序列
import * as sequence from 'sequence';let seq = new sequence.Sequence();let key = "A";for (let i=0; i < 10; i++) { let v = seq.next(key); console.log(v);}let keyB = "B";console.log(seq.next(keyB)); Copy
import * as sequence from 'sequence';let seq = new sequence.Sequence();let key = "A";for (let i=0; i < 10; i++) { let v = seq.next(key); console.log(v);}let keyB = "B";console.log(seq.next(keyB));
clear sequence
key of sequence
get next number of the sequence
set key to specified value
current value of key
序列
Example