fex-team / jello

Front End Integrated Solution for J2EE Velocity.
206 stars 49 forks source link

jello release -m 后如何替换自定义属性上的图片地址 #73

Closed ystarlongzi closed 9 years ago

ystarlongzi commented 9 years ago

假如有以下代码

<img src="images/xxx_small.jpg" data-big-pic="images/xxx_big.jpg" />

jello release -m 后,会修改掉src属性的图片地址,但自定义属性data-big-pic上的值是无法替换的,有什么办法可以解决嘛?

ystarlongzi commented 9 years ago

又测试了下,data-src属性是可以,而data-xx则不会被替换掉

<img src="images/xxx_small.jpg" data-src="images/xxx_big.jpg" data-xx="images/xxx_big.jpg" />
2betop commented 9 years ago

是的,只有 data-src 是可以的,如果需要扩展得自己写逻辑了。