window.frames[0].document 会报 Permission denied to access property ‘document’ 错误,百思不得其解啊!原来iframe的src指向了百度,这个就涉及跨域的,如果能让你轻易的获得document对象,那么就会出安全问题哦!