前台数据获取后台asp参数
$.ajax({
url: '/online/index.asp?sort=<%=request.querystring("contents")%>&act=update&x=90&y=10"',
type: 'GET',
error:function(){
},
success:function(){
let text = [sort]
let data = {
status: <%=ukid%>,
userId: '1',
img: 'k1.png',
time:getTodayBegin(),
content: text[sort]
};
}
});
后台调用数据 asp页面设置
contents=ucase(request.querystring("contents"))
if act="update" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from qtian where status='3336' "
rs.open sql,conn,1,3
if not rs.eof then
biaoji=rs("biaoji")
contents=rs("content")
rs.Close
Set rs = Nothing
end if
end if
%>
后台asp的
if act="update" then前加一句
act=ucase(request.querystring("act"))
在结尾处输出contents
response.write(contents)