var _sex=$("input[name='sex']:checked").val();
if(_sex==null){
layer.msg("请选择性别");
return false;
}
var _sex=$("input[name='sex']:checked").val();
if(_sex==null){
layer.msg("请选择性别");
return false;
}
转载于:https://www.cnblogs.com/huahua0825/p/8080321.html