I am getting confused with the internal working of DOM. Eg: Does document.form.write() means that there are 2 objects "document" and "form" of nested classes. OOPS representation:
document.form.write()
class A{ class B{ write(); }form; }document; main() { document.form.write("Hello World"); }
私はフォームが何を参照するのか知りたい。 DOMのメソッドまたはオブジェクトですか?
各レベルはクラスではなくjsが行うオブジェクトです。次のように想像してみてください。
var tellMeStuff = function(a) { print(a); }; var formOnThePage = { method: 'post', action: 'form.php', write: tellMeStuff }; var document = { property = 'the page', form: formOnThePage };
日本人コミュニティのjavascript