1. About prototype: prototype here is a feature of javascript, not the famous prototype framework:
]
2. About Variable scope, and the different handling of js by IE and Firefox, here are a few examples, some of which are notes I saw from elsewhere, and some of which I dug out myself.
2.1
If you need to introduce external Js, you need to refresh to execute
]
2.2
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
[Ctrl A Select all Note:
[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]
2.8
2.9
2.10
2.11
2.12
2.13
2.14:
注意这三个html文件的结果有什么不同.
a.html:
b.html:
c.html:
2.15
看看IE,firefox下分别运行有何不同:
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn