checkbox改成radio效果,单选,取消

 $(function () {
            var allBox = $(":checkbox");
            allBox.click(function () {
               if(this.checked){
                   allBox.removeAttr("checked");
                   $(this).attr("checked", "checked");
                 }
            });
        });

原文地址:https://www.cnblogs.com/ch-zaizai/p/5147357.html