保证top的网页有引用dd_api, 在iframe页面内将dd对象修改为: dd = (window.self !== window.top && top.dd) || dd; 即可正常调用dd_api方法。