<%
set rs=.......................
sql="Select BigID,BigClassName From Hhf_PrSmallClass WHERE [你的一级分类ID字段]="&BigClassID
rs.Open sql,Conn,1,1
if rs.eof then
response.write("NODATA")
else
'将ID和NAME读出来,形成JSON格式或其他数组或字符串
'简单起见我以字符串举例
dim s
do while not rs.eog
if s="" then
s=rs(0)&""&"|"&rs(1)&""
else
s=s&","&rs(0)&""&"|"&rs(1)&""
end if
loop
'最后得到类似“1|小类1,2|小类2,3|小类3”这样的串
if s="" then s="NODATA"
response.write s'这里就将数据返回给前台了
end if
'释放资源
'......................
response.end
%>
Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ...
[详细]