var frameId = window.frameElement && window.frameElement.id || '';
alert(frameId);
代码来源:https://zhidao.baidu.com/question/1691551926435524388.html
var frameId = window.frameElement && window.frameElement.id || '';
alert(frameId);
代码来源:https://zhidao.baidu.com/question/1691551926435524388.html