Fun with Attributes in JavaScript
The.attr()methodisaconvenientwaytosetthevalueofattributes—especiallywhensettingmultipleattributesorusingvaluesreturnedbyafunction ...,TheElement.attributespropertyreturnsalivecollectionofallattributenodesregisteredtothespecifiednode.Examples·Brow...。參考影片的文章的如下: