Home > Article > Web Front-end > Introduction to questions about js keyword naming_basic knowledge
I feel a little confused about the naming of keywords in js
Sometimes it is like this: getElementById, indexOf, charCodeAt, parseFloat, navigator.appName, navigator.appVersion/appCodeName/cookieEnable/userAgent, which gives the impression that it is the first letter of the word. Uppercase
Sometimes it looks like this: fontsize, fontcolor gives the impression that they are all lowercase
But sometimes it looks like this: innerHTML
Can anyone tell me about this? Is there any pattern? I think if I don’t use it for a while, it will get lost. Waiting for answers online!
//*****After waiting for 10 minutes and no one answered, I had to continue adding today's content"****************/
accesskey attribute
<< /code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">a
id='mya' < code class="attr" style="color:blue; margin:0px 0.1em; font-size:14px; background-color:transparent">href=
"
"
accesskey
="
h
"
> ;</a>