Difference between JS and Jquery

checked',true); JS operation style: only inline styles can be operated. Jquery's operation style: jQuery can operate inline style var a = $("#aa"); a.cs("background-color","red");
























var a = $("#aa");
alert(a.css("width"));//output css width
alert(a.css("background-color"));//output background color

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324776508&siteId=291194637