Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/451.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何获取对象类型SVGComponentTransferFunctionElement_Javascript_Svg - Fatal编程技术网

Javascript 如何获取对象类型SVGComponentTransferFunctionElement

Javascript 如何获取对象类型SVGComponentTransferFunctionElement,javascript,svg,Javascript,Svg,我试图获取一个类型为SVGComponentTransferFunctionElement的对象。 有人能给我举个例子(html),其中返回(创建)的输出是SVGComponentTransferFunctionElement类型的吗 有关此类型的详细信息: 试试这段代码 var el = document.createElementNS("http://www.w3.org/2000/svg", "feFuncR"); alert(el instanceof SVGComponentTrans

我试图获取一个类型为SVGComponentTransferFunctionElement的对象。 有人能给我举个例子(html),其中返回(创建)的输出是SVGComponentTransferFunctionElement类型的吗

有关此类型的详细信息:

试试这段代码

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

因此,el实现了SVGComponentTransferFunctionElement接口。

很有趣。所以基本上我可以使用feFuncA、B、G和R类型的任何元素来应用它的svgcomponentTransferFunction元素属性。解决,我的问题。谢谢