構文
setIndex(index)
引数
- index
- 0 以上の数値です。0 未満の値や数字以外を指定したときはインデックス番号は 0 になります。
返値
なし
例
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
const before = animator.getIndex();
animator.setIndex(10);
const after = animator.getIndex();
// before = 0
// after = 10