window.document的原型链

时间:2017-11-22 23:59:07

标签: javascript dom

当我进入chrome控制台时:

case timezoneSetting: {
        UIViewController *pickerViewController = (setting.type == timeSetting) ?
                [[[TimePickerViewController alloc] initWithSetting:setting] autorelease] :
                [[[TimeZonePickerViewController alloc] initWithSetting:setting] autorelease];

        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
            CGRect frame = [self.tableView rectForRowAtIndexPath:indexPath];
            CGRect cellRect = CGRectMake(frame.origin.x, frame.origin.y - tableView.contentOffset.y, frame.size.width, frame.size.height);

            [pickerPopover setContentViewController:[[[UINavigationController alloc] initWithRootViewController:pickerViewController] autorelease]];
            [pickerPopover presentPopoverFromRect:cellRect inView:self.view permittedArrowDirections:(UIPopoverArrowDirectionRight | UIPopoverArrowDirectionUp) animated:YES];
        }
        else {
            [self.navigationController pushViewController:pickerViewController animated:YES];
        }

        break;
    }

我得到一个原型为console.dir(window.document); 的对象(HTMLDocument

此对象依次为__proto__ : HTMLDocument原型(Document

此对象依次为__proto__ : Document原型(Node

在我目前的理解中__proto__ : Document是DOM,在这个对象上是各种各样的函数,它们让我们以编程方式访问元素。

原型链中的其他3个链接是否也与DOM相关?它们是DOM的一部分吗?

0 个答案:

没有答案