不懂事的小男孩

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-width: 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>";

posted on 2015-10-01 12:52  不懂事的小男孩  阅读(233)  评论(0编辑  收藏  举报