data = data.trim(); data = data.replace(/ /g, ''); data = JSON.parse(data)
//indexOf检测是否含有ERROR字符
if (data.indexOf('ERROR') > -1){ console.log(data) }else{ $('.tblock').html(data); }