jquery 表双击某行时,取出某行中各列的数值.

<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>