document.url和window.open,但当我在那个页面上尝试执行document.getElementByTagName("script")时,它会给我返回null。这意味着我无法访问另一个页面的DOM。
document.url和window.open,但当我在那个页面上尝试执行document.getElementByTagName("script")时,它会给我返回null。这意味着我无法访问另一个页面的DOM。
http://coding.smashingmagazine.com/2012/06/27/introduction-to-javascript-unit-testing/