js
weixin_43622268
这个作者很懒,什么都没留下…
展开
-
js时间标准化
方法1var today = new Date();var y = today.getFullYear();var m = today.getMonth();var d = today.getDate();var h = today.getHours();var min = today.getMinutes();var sec = today.getSeconds();var mo...原创 2019-11-08 11:11:36 · 677 阅读 · 0 评论 -
数组和树的互转
数组转树var b=[{text:'wellintech',state:'open',id:'1'},{text:'tell',state:'open',id:'2'},{text:'sfsdf',state:'open',id:'3'},{text:'dev',state:'open',id:'1/1'},{text:'web',state:'open',id:'1/2'},{tex...原创 2019-11-07 13:36:12 · 128 阅读 · 0 评论