07 2020 档案

摘要:Array.from([1, , 2, , 3], (n) => n || 0) // [1, 0, 2, 0, 3] function typesOf () { return Array.from(arguments, value => typeof value) } typesOf(null, 阅读全文
posted @ 2020-07-09 11:00 LaLaLa_heng 阅读(135) 评论(0) 推荐(0) 编辑
摘要:returnIndex(str,cha,num){ var x=str.indexOf(cha); for(var i=0;i<num;i++){ x=str.indexOf(cha,x+1); } return x; }, 阅读全文
posted @ 2020-07-03 10:43 LaLaLa_heng 阅读(606) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示