window.open()
<button>点击我</button><script>document.getElementById(“go”).addEventListener(“click”, () => { openUrl(“https://so.toutiao.com/search?dvpf=pc&keyword=Plzbefat”); }); functionopenUrl(url) { window.open(url); } </script>
看看颜色和下划线
<button>点击我</button><script>document.getElementById(“go”).addEventListener(“click”, () => { openUrl(“https://so.toutiao.com/search?dvpf=pc&keyword=Plzbefat”); }); functionopenUrl(url) { window.open(url); } </script>
看看颜色和下划线