在我的Rails应用程序中,我想将nofollow, noindex添加到几个链接中。但是,我不确定是否需要添加comma(,)。
哪一个是对的?
1. <%= link_to 'Apply', apply_new_path, rel: 'nofollow, noindex' %> # with comma(,)
or
2. <%= link_to 'Apply', apply_new_path, rel: 'nofollow noindex' %> # no comma(,) used here发布于 2022-03-22 11:01:48
和区域元素上的rel属性控制元素创建的链接类型。属性的值必须是唯一的space-separated标记的无序集合。
https://stackoverflow.com/questions/71566634
复制相似问题