1 $("#tab>tbody tr").on('click',function(){ 2 var code_value=[] 3 $(this).children('td').each(function(){ 4 code_value.push($(this).text()) //獲取每一個td中的數據並放到數組中
5 }) 6 })
1 $("#tab>tbody tr").on('click',function(){ 2 var code_value=[] 3 $(this).children('td').each(function(){ 4 code_value.push($(this).text()) //獲取每一個td中的數據並放到數組中
5 }) 6 })
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。