js 获取框架信息

js 获取框架信息

1.在框架内部:实际地址 = location.href。在框架外部,拿到 frame 对象,然后 frame.getAttribute("src")2.拿到 frame 对象,然后 frame.contentDocum
JavaScript190