$("input").each(function(index){ //Get the entire The input value of the page
$("input:text").each(function(index){
alert(index);//The subscript value of the loop, starting from 0
alert( this.value); alert($(this).attr("type")); //With its own attributes, you can use this(Dom) to directly get the value
alert($(this).attr("vili") ); //Custom attributes need to use attr(Jquery) to get the value
//if($(this).attr("vili")=="true"&&){
//}
});
$.ajax({
url: '<%=basePath%>schedule/getMonthRecordLs.action',
dataType: 'json',
success: function(data) {
var events = [];
$(data).each(function(i,val) {
events.push({
id: val.sc_id,
title: val.sc_planemp,
start: new Date(val.sc_date),
color: val.sc_classes=='1'?'':'#993300'
});
});
callback(events) ;
}
});