夺命雷公狗jquery---23-one一次绑定

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="js/jquery.js"></script>
        <script>
            //页面载入ready方法
            $(function(){
                //为按钮版定单击事件
                $('#btnok').one('click',function(){
                    alert('hello');
                })
            })
        </script>
    </head>
    <body>
        <input type="button" id="btnok" value="OK" />
    </body>
</html>
原文地址:https://www.cnblogs.com/leigood/p/4911947.html