Difference between JQuery and JS usage

checked',true); JS operation style: only inline styles can be operated. For example: a.style.backgroundColor = "red"; 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=324769812&siteId=291194637