我写成这样 $("input[name='state']").val("生效"); $("input[name='state']").attr("style","color:red");
获取焦点和失去焦点时候,状态一样吗
检查下判断条件是否成立