Js keyword naming question introduction
- 2020-03-30 02:45:13
- OfStack
Js keyword naming is a bit confusing to me
Sometimes is like this: getElementById, indexOf, charCodeAt, parseFloat, navigator. AppName, navigator. AppVersion/appCodeName/cookieEnable/userAgent the sense that gives a person is capitalize the first letter of the word
Sometimes: fontsize and fontcolor are all lowercase
But sometimes it's like this: innerHTML
Can someone tell me if there's a pattern to this? I think I'll lose it if I don't use it for a while. Online and so on!
/
The accesskey attribute
The Js code for modifying or assigning this property is document.getelemntbyid ('#mya').
Use of accesskey shortcuts in various browsers
IE browser
Hold Alt, click the shortcut defined by the accesskey (the focus will move to the link), and press enter.
The FireFox browser
Hold Alt+Shift and click the shortcut defined by the accesskey.
Chrome
Hold Alt and click the shortcut defined by the accesskey.
The Opera browser
Hold down the Shift key and click esc to bring up the list of accesskey shortcuts defined on this page.
Safari
Hold Alt and click the shortcut defined by the accesskey.
Sometimes is like this: getElementById, indexOf, charCodeAt, parseFloat, navigator. AppName, navigator. AppVersion/appCodeName/cookieEnable/userAgent the sense that gives a person is capitalize the first letter of the word
Sometimes: fontsize and fontcolor are all lowercase
But sometimes it's like this: innerHTML
Can someone tell me if there's a pattern to this? I think I'll lose it if I don't use it for a while. Online and so on!
/
The accesskey attribute
<code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent"><</code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">a</code> id='mya' <code class="attr" style="color:blue; margin:0px 0.1em; font-size:14px; background-color:transparent">href</code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">=</code><code class="attrvalue" style="color:red; margin:0px 0.1em; font-size:14px; background-color:transparent">"</code><code class="attrvalue" style="color:red; margin:0px 0.1em; font-size:14px; background-color:transparent">"</code> <code class="attr" style="color:blue; margin:0px 0.1em; font-size:14px; background-color:transparent">accesskey</code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">=</code><code class="attrvalue" style="color:red; margin:0px 0.1em; font-size:14px; background-color:transparent">"</code><code class="attrvalue" style="color:red; margin:0px 0.1em; font-size:14px; background-color:transparent">h</code><code class="attrvalue" style="color:red; margin:0px 0.1em; font-size:14px; background-color:transparent">"</code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">></a></code>
The Js code for modifying or assigning this property is document.getelemntbyid ('#mya').
Use of accesskey shortcuts in various browsers
IE browser
Hold Alt, click the shortcut defined by the accesskey (the focus will move to the link), and press enter.
The FireFox browser
Hold Alt+Shift and click the shortcut defined by the accesskey.
Chrome
Hold Alt and click the shortcut defined by the accesskey.
The Opera browser
Hold down the Shift key and click esc to bring up the list of accesskey shortcuts defined on this page.
Safari
Hold Alt and click the shortcut defined by the accesskey.