我有这个功能:
if (location.locationUrl != '') {
content += "<a class='viewLocationPage btn corePrettyStyle' " +
(mapObject.options.openinnew == false ? "" : "target='_blank'") +
" href='" + location.locationUrl + "' >View location detail</a>";
}
我添加了这样的rel属性:
if (location.locationUrl != '') {
content += "<a class='viewLocationPage btn corePrettyStyle' " +
(mapObject.options.openinnew == false ? "" : "target='_blank'") +
"rel='prettyPhoto[iframes]'" + " href='" + location.locationUrl + "' >View location detail</a>";
}
但不起作用,它不会在标记中添加任何 rel 属性。关于如何使这项工作的任何建议?