Ajax UI方面的处理方式

一种方式:

从远程直接获取HTML加载到本地

第二种方式
从远程获取JSON,到本地使用JS处理数据。

var html = "<table cellspacing=\"0\" cellpadding=\"4\" rules=\"cols\" id=\"gvUser\" style=\"color: Black;";
html += "background-color: White; border-color: #DEDFDE; border- 1px; border-style: None;";
html += "border-collapse: collapse;\"><tr style=\"color: White; background-color: #6B696B; font-weight: bold;\">";
html += "<th scope=\"col\"> Id</th><th scope=\"col\">用户名</th><th scope=\"col\">昵称</th>";
html += "<th scope=\"col\">电话</th><th scope=\"col\">角色</th></tr>";

//这里是循环拼接数据HTML

html += "</table>";

原文地址:https://www.cnblogs.com/daizhipeng/p/4850897.html