$('#operatordelivery').attr('checked',true);你好,我目前正在将jQuery版本迁移到jQuery-2.1.1,我可以在控制台中看到警告JQMIGRATE:jQuery.fn.attr('selected')mayusepropertyinsteadofattribute。我不清楚这个警告解释了什么。谁能告诉我这个错误是什么意思? 最佳答案 来自JQMIGRATE文档:JQMIGRATE:jQuery.fn.attr('selected')mayusepropertyinsteadofatt