Code in angular:
<td><a href={{"http://www.baidu.com"}}></a> </td>
A record in angular has an a tag nested in the middle. I want the URL address to jump when clicked, but it doesn't work. What should I do?
ringa_lee
How can I jump to a tag without href?
Remove the curly braces and write directlyhref="http://www.baidu.com"
href="http://www.baidu.com"
Remove the brackets. If it still doesn’t work, see if the default event is blocked and use js directly
A label has no width and height, resulting in an empty position and cannot be clicked!
How can I jump to a tag without href?
Remove the curly braces and write directly
href="http://www.baidu.com"
Remove the brackets. If it still doesn’t work, see if the default event is blocked and use js directly
A label has no width and height, resulting in an empty position and cannot be clicked!