我需要以某种方式使用JavaScript检索客户端的IP地址; 没有服务器端代码,甚至没有SSI.
但是,我并不反对使用免费的第三方脚本/服务.
我正试着打电话
parent.postMessage(obj, 'whatever');
Run Code Online (Sandbox Code Playgroud)
在iframe中,我收到此错误: Uncaught DOMException: Failed to execute 'postMessage' on 'Window': An object could not be cloned.