值
一个表示该常量数值的数字。
示例
以下是如何访问 unitType
属性的示例
js
// Get an SVGAngle object
const svg = document.querySelector("svg");
const angle = svg.createSVGAngle();
// Set the angle value
angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 45);
// Check the unit type
console.log(angle.unitType); // Output: 2 (SVG_ANGLETYPE_DEG)
规范
规范 |
---|
Scalable Vector Graphics (SVG) 2 # __svg__SVGAngle__unitType |
浏览器兼容性
加载中…