标签:join alert push split style 问题 length class rgb
alert(CheckObjTime2(‘2021-1‘)) alert(CheckObjTime2(‘2021-1-1‘)) alert(‘好了‘) var time_obj = ‘2021-1‘; //格式化为三位 var d_001 = time_obj.split(‘-‘); if (d_001.length == 2) { d_001.push(‘01‘); } time_obj = d_001.join(‘-‘); alert(CheckObjTime2(time_obj))
标签:join alert push split style 问题 length class rgb
原文地址:https://www.cnblogs.com/enych/p/14244606.html