标签:function hang nbsp and span rand code color col
var mode = { 0: ‘sequence‘, 1: ‘loop‘, 2: ‘random‘ } var m = 1 function changeMode() { var newMode = (m + 1) % 3 console.log(mode[newMode]) m++ } changeMode() // random changeMode() // sequence changeMode() // loop changeMode() // random
标签:function hang nbsp and span rand code color col
原文地址:https://www.cnblogs.com/ladybug7/p/12310625.html