간단한 js 메시지 기능

1156 단어



	
	 
	
	
	
		$(function(){
			$("#tijiao").click(function(){
				var name=$("#name").val();
				var info=$(".infos").val();
				var date=new Date();
				var year=date.getFullYear();
				var month=date.getMonth()+1;
				var day=date.getDate();
				var hour=date.getHours();
				var min=date.getMinutes();
				var secon=date.getSeconds();
				var riqi=year+"-"+month+"-"+day+" "+hour+":"+min+":"+secon
				var obj=("<li> :"+name+"  :"+info+"  "+riqi+"</li><br/>");
				$("#ul1:last").append(obj);
			})
		})
	


	


--------------------- 
 : IT  
 :CSDN 
 :https://blog.csdn.net/qq_34137397/article/details/52896346 
 : , !

좋은 웹페이지 즐겨찾기