用户名
$(function () { $.ajax({ url : baseURL+'api/userInfo', type : 'post', dataType : 'json', success : function(data) { if(data.code==0){ var user=data.data; $("#userName").html(user.username); $("#serviceEndDate").html(user.expireTime); $("#productname").html(user.productname); } } }); });