<script>
        $(function () {
            $("tr").dblclick(function () {
                var txt = $("table tr:eq(0) td:eq(1)").text();
                //alert(txt);
                var $this = $(this);//就是双击的该行.
                alert($this.children().eq(1).text()+$this.children().eq(2));//获取该行下的列,eq(0)--第一列.
                testargument([12,23,11,55,78,32]);
            });
        });
        //test 2017.08.23
        function testargument()
        {
            var max = Math.max.apply(Math, arguments[0]);//获取数组中最大值.max = 78,这样免去了循环和if判断.
            alert(max);
            //arguments.callee();
        }
    </script> 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-22
  • 2022-12-23
  • 2021-09-05
  • 2022-02-17
  • 2021-05-19
  • 2021-05-25
相关资源
相似解决方案