From c84fe5777f859d2b2acbd3d2b4bf645990aec917 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 11 Jul 2017 10:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99iframe=E5=8A=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/iframe/iframe.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/base/single/iframe/iframe.js b/src/base/single/iframe/iframe.js index 77230d4a37..141be9b13e 100644 --- a/src/base/single/iframe/iframe.js +++ b/src/base/single/iframe/iframe.js @@ -30,6 +30,15 @@ BI.Iframe = BI.inherit(BI.Single, { return this.options.src; }, + setName: function (name) { + this.options.name = name; + this.element.attr("name", name); + }, + + getName: function () { + return this.options.name; + }, + getWidth: function () { return this.options.width },