prop方法与attr方法类似,removeProp方法与removeAttr方法类似。 $(“span”).eq(0).prop(“demo”,“it666”); console.log($(“span”).prop(“demo”