Why does the a tag jump with the current url path

Reason: If you don't have http, the browser will recognize you as a path instead of a connection, so you need to add


error
jump test

<a href='www.baidu.com'>跳转测试</a>

Correct
jump test

<a href='http://www.baidu.com'>跳转测试</a>

Guess you like

Origin blog.csdn.net/weixin_42821697/article/details/123019311