SVGLengthList: removeItem() 方法
SVGLengthList
接口的 removeItem()
方法会从列表中移除指定索引处的现有项。
语法
js
removeItem(index)
参数
index
-
一个非负整数,指定要删除的项的索引。
返回值
从列表中移除的 SVGLength
对象。
异常
NoModificationAllowedError
DOMException
-
在列表为只读时抛出。
IndexSizeError
DOMException
-
当索引超出列表范围时抛出。
示例
请参阅 SVGLengthList
获取完整示例。
规范
规范 |
---|
Scalable Vector Graphics (SVG) 2 # __svg__SVGNameList__removeItem |
浏览器兼容性
加载中…