不执行success?
$.ajax({ type: 'post', url: './data/Handler1.ashx', data: 'username=' + $('#username').val(), dataType: 'json', success: function (data) { window.alert(data[0].meg); $('#myres').val(data[0].meg); }, error: function (x1,x2,x3){alert(x1);}});