Next $("#alink").click(); // The click event of the a tag is triggered, but the page jump is not triggered
document.getElementById("alink").click(); //It not only triggers the click event of the a tag, but also triggers the page jump
Change "next step" to "< span id="spanId">Next step" That is, add an element that can be captured by jQuery to the text in the A tag, and then $("#spanId").click(); to trigger the page jump.