1.?素材素材ز? Դ??
?ز? Դ??
//js代码声明
<script type="text/javascript">
//就绪函数
$(document).ready(function(){
//获取当前日期
var now = new Date();
//获取四位数的年数
var year = now.getFullYear();
//获取月份数
var month = now.getMonth()+1;
//获取当前日期数
var day = now.getDate();
//获取当前小时数
var hour = now.getHours();
//获取当前分钟数
var minute = now.getMinutes();
//获取当前秒数
var second = now.getSeconds();
//将id为timePick的value值赋值为当前日期,格式为yyyy-MM-dd HH:mm:ss
$("#timePick").val(year+"-"+month+"-"+"-"+day+" "+hour+":"+minute+":"+second);
//jquery的源码源码头条源码系统change函数
$("#upload-file-1").change(function(){
//当id为upload-file-1的元素内容被改变时执行自定义方法upload()
uploadFile("upload-file-1","img-1","label-file-1","i-hide-1");
});
//jquery的change函数
$("#upload-file-2").change(function(){
//当id为upload-file-2的元素内容被改变时执行自定义方法upload()
uploadFile("upload-file-2","img-2","label-file-2","i-hide-2");
});
//jquery的change函数
$("#upload-file-3").change(function(){
//当id为upload-file-3的元素内容被改变时执行自定义方法upload()
uploadFile("upload-file-3","img-3","label-file-3","i-hide-3");
});
});
//js代码声明结束
</script>