我想拼接值为3的线[3,"John",90909090]data.json{"headers":[[{"text":"Code","class":"Code"},{"text":"Code","class":"Code"}]],"rows":[[0,"Peter",51123123],[3,"John",90909090],[5,"Mary",51123123]],"config":[[0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],"other":[[13,0]]}我试试这个:varsize=data.rows.length
我有一个选择框(Specie)和一个typeAhead输入字段(Breed),我需要更新选择框的更改,我有以下代码。SelectaSpeciesDogCatHorse$(document).on('change','.specie-breed',function(){letspecie=this.value;$('#breed').typeahead({source:function(query,process){return$.get('/get/breeds/'+specie,{query:query},function(data){console.log(data);return