In order to test the jump, I added a button to the page with the ID register11, but the jump did not respond. Please tell me what's wrong.
$("#register11").on('click', function () {
window.location.href = "http://www.jb51.net";
}),
<p id="register11">点击</p> <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script> $("#register11").click(function(){ window.location.href = "http://www.jb51.net"; });
This way of writing requires the introduction of jquery.js
The id was created by myself, the function is valid, and even if I add an alert information window, it will appear, but nothing will happen when jumping. Can you help me jump for this test? I'll test it.
The ID is register11. Is it on the page or modified by other js
This way of writing requires the introduction of jquery.js
The id was created by myself, the function is valid, and even if I add an alert information window, it will appear, but nothing will happen when jumping. Can you help me jump for this test? I'll test it.
The ID is register11. Is it on the page or modified by other js