摘要:
一般,在js数组中我们经常使用slice、split()、shift()、等常见方法,我们如何在数组中绑定自己的方法返回数组中的最大值呢? function array_max( ) { var i, max = this[0]; for (i = 1; i < this.length; i++) 阅读全文
摘要:
1.使用背景:和客户沟通后,要在input=date控件中默认显示当天日期; 2.html部分:<input type="date" id="dateTime"> 3.js部分: var d = new Date(); var day =d.getDate(); if(d.getMonth()<10 阅读全文