我在HTML页面设置了path的fill
结果用js获取的值为空。
话说你们也是这样的吗?
document.getElementsByTagName('path')[0].getAttribute('fill')
应该不是在style对象里 在attributes看看