我正在尝试将routerLink放入const中,但是它不起作用。
const str4 = `<div `+knowmore_style+`>
<b><a routerLink="/details/` + entry._id + `">
<img src="assets/icon/add.png" alt="ques-mark" style="width:1em; filter:invert(1)">
Know More
</a></b>
仅当我这样放置按钮时,该按钮才可单击:
const str4 = `<div `+knowmore_style+`>
<b><a href="/details/` + entry._id + `">
<img src="assets/icon/add.png" alt="ques-mark" style="width:1em; filter:invert(1)">
Know More
</a></b>
你知道男人们怎么做吗? 预先感谢
答案 0 :(得分:0)
这项工作会是偶然的吗?
<a routerLink="['/details/', entry._id]"></a>