简体   繁体   中英

How do I remove empty HREF attributes from Raphael object?

I would like to unset (remove) href attribute of the Text object. How to do that?

Try

var paper = Raphael( 0, 0, 100, 100 );
var rect = paper.rect( 0, 0, 100, 100 );

// just set it to nothing
rect.attr({ href: "" });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM