<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a onclick="return ClickOn()" href= "http://oldboyedu.com">走你1</a>
<a  id='i1' href= "http://oldboyedu.com">走你2</a>

<script src="../jquery-2.12.4.js"></script>
<script>
    function ClickOn() {
        alert(123);
        return false
    }
    $("#i1").click(function () {
        alert(123);
        return false

    })
</script>

</body>
</html>

 

posted on 2018-07-14 18:26  python我的最爱  阅读(321)  评论(0编辑  收藏  举报