首页 > 代码库 > 本地跨域操作iframe的提示

本地跨域操作iframe的提示

Failed to read the ‘contentDocument‘ property from ‘HTMLIFrameElement‘: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match. 

不想说什么,知道跨域就可以了