KISSY.Suggest.callback({"result":[["连衣裙秋","8294283"],["连衣裙秋装长袖","2087846"],["连衣裙2014","21145128"],["连衣裙小清新","1060051"],["连衣裙秋装长袖时尚","320419"],["连衣裙韩国","2878680"],["连衣裙秋装长袖显瘦","1644429"],["连衣裙秋冬新款","753603"],["连衣裙2014秋 长袖","1859697"],["连衣裙春秋款 女 长袖","232086"]],"tmall":"连衣裙"})
KISSY.Suggest.callback({"result":[]})
<% key="连衣群" response.write getlistkey(key) Function getlistkey(key) getlistkey = "http://suggest.taobao.com/sug?extras=1&code=utf-8&callback=KISSY.Suggest.callback&q="&key getlistkey = gethttppage(getlistkey,"utf-8") '这儿不管是换成gb2312,还是utf-8获取不到完整内容 End function '*********获取网页源代函数 Begin ************ function gethttppage(url,CharsetStr) dim adxmlhttp set adxmlhttp = Server.createobject("microsoft.xmlhttp") adxmlhttp.open "get",url,false adxmlhttp.send() if adxmlhttp.readystate <> 4 then exit function gethttppage = Bytes2bStr(adxmlhttp.responsebody,CharsetStr) set adxmlhttp = nothing End function function Bytes2bStr(vin,CharsetStr) Dim BytesStream,StringReturn Set BytesStream = Server.CreateObject("adodb.stream") BytesStream.Type = 2 BytesStream.Open BytesStream.WriteText vin BytesStream.Position = 0 BytesStream.Charset = CharsetStr ' "gb2312" BytesStream.Position = 2 StringReturn =BytesStream.ReadText BytesStream.close Set BytesStream = Nothing Bytes2bStr = StringReturn End function %>
key="连衣群" Session.CodePage=65001'设置为8tf-8 key=server.URLEncode(key) Session.CodePage=936'在还原为gb2312编码
28,391
社区成员
357,060
社区内容
加载中
试试用AI创作助手写篇文章吧