<script src="js/jquery-1.12.3-jquery.min.js"></script>
<script src="layer/layer.js"></script>
<a onClick="vote('<%=rs("id")%>')"><%=rs("userID")%></a>
<script type="text/javascript">
function vote(id) {
var url="ajax.asp?id="+id
$.get(url, null, function(data) {
//data 就是页面返回的数据 通常来说你请求的页面是什么, form返回就是什么
layer.open({
type: 1,
title: '详细会员信息',
skin: 'layui-layer-rim', //加上边框
area: ['650px', '350px'], //宽高
shadeClose: true, //开启遮罩关闭
content: data,
});
});
}
</script>
==========================
ajax.asp里面的内容
--------------------------------
<div style="margin:15px">
<table width="100%" border="0" cellspacing="1" cellpadding="5">
<tr>
<td width="12%"><strong>姓名:</strong></td>
<td width="40%"><%=rs("wx_name")%></td>
<td width="14%"> </td>
<td width="34%"> </td>
</tr>
<tr>
<td><strong>从业:</strong></td>
<td><%=rs("auto_cj")%></td>
<td><strong>项目:</strong></td>
<td><%=rs("auto_cx")%></td>
</tr>
<tr>
<td><strong>地址:</strong></td>
<td colspan="3"><%=rs("wx_add")%></td>
</tr>
<tr>
<td><strong>联系:</strong></td>
<td colspan="3"><%=rs("wx_mobile")%>、<%=rs("wx_mobile1")%>、<%=rs("wx_tel")%></td>
</tr>
<tr>
<td><strong>公司:</strong></td>
<td colspan="3"><%=rs("wx_company")%></td>
</tr>
<tr>
<td><strong>备注:</strong></td>
<td colspan="3"><%=rs("wx_Remarks")%></td>
</tr>
</table>
</div>