摘要:
伪代码:backend:public string GetJson(){var lst = xxxLst;var obj = Json(lst);return new JavaScriptSerializer().Serialize(obj.Data);}frontend:var jsonstr = ajax return GetJson();$j("#SearchContent").autocomplete({ source: eval(jsonstr)}) 阅读全文