var len=$("input[name='bike']:checked").length; //len为0未选中 转载于:https://www.cnblogs.com/wenhainan/p/10869496.html