ajax知识点
$.ajax({ 'url': url, 'data':{'json': JSON.stringify(parm)}, 'dataType': 'json', 'type' : 'post', 'success':function(data){ if (data.session !== undefined) { $('input[name=sid]').val(data.session.sid); $('input[name=uid]').val(data.session.uid); } $("#request").html(JsonUti.convertToString(data)); }, 'beforeSend' : function(){ $("#request").html('加载数据中...'); }, 'error' : function(i, data){ $("#request").html(i.responseText); } });
起点在哪,或许选择不了。重要的是,你追求的终点在哪!