如何获取对象类型SVGComponentTransferFunctionElement

时间:2014-07-27 10:34:05

标签: javascript svg

我正在尝试获取具有SVGComponentTransferFunctionElement类型的对象。 有人能告诉我一个例子(html)返回(创建)输出的类型是SVGComponentTransferFunctionElement吗?

此类型的更多详情: http://msdn.microsoft.com/en-us/library/ie/hh973367%28v=vs.85%29.aspx

1 个答案:

答案 0 :(得分:1)

试试这段代码。

var el = document.createElementNS("http://www.w3.org/2000/svg", "feFuncR");
alert(el instanceof SVGComponentTransferFunctionElement);

因此,el实现了SVGComponentTransferFunctionElement接口。