add opts.linkAttribute
fix bug
Merge pull request #1 from mycolorway/rc-linkAttribute

add opts.linkAttribute