!that.isMultiple && values.length > 1 && (values.length = 1); 作用是,如果挂载的是单选框时把数组截断,保证只会把数组中第一个变为selected
点赞 1

相关推荐

牛客网
牛客企业服务