lovemonkey

Results 1 issues of lovemonkey

var tempArr=[], index=0; bluetoothSerial.setDeviceDiscoveredListener(function(device) { console.log(index++); if(tempArr.length===0){ me.comp("undispairedDevs").newData({defaultValues:dataformat([device])}); tempArr.push(device); console.log("第一个:"+JSON.stringify(tempArr)); }else{ for(var i=0,len=tempArr.length;i