87,915
社区成员
发帖
与我相关
我的任务
分享
$("form").find("input").each(function(){
var id = $(this).attr("id");
switch($(this).attr(你的自定属性)){
case "a":
//调用你的a方法
//id传入
break;
case "b":
//调用你的b方法
break;
}
});
$(document).ready(function() {
$("#form1").each(function(i) {
var a = $(this).ID;
});
});