久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='yaPwH'></small><noframes id='yaPwH'>

      1. <tfoot id='yaPwH'></tfoot>
      2. <legend id='yaPwH'><style id='yaPwH'><dir id='yaPwH'><q id='yaPwH'></q></dir></style></legend>

          <bdo id='yaPwH'></bdo><ul id='yaPwH'></ul>
        <i id='yaPwH'><tr id='yaPwH'><dt id='yaPwH'><q id='yaPwH'><span id='yaPwH'><b id='yaPwH'><form id='yaPwH'><ins id='yaPwH'></ins><ul id='yaPwH'></ul><sub id='yaPwH'></sub></form><legend id='yaPwH'></legend><bdo id='yaPwH'><pre id='yaPwH'><center id='yaPwH'></center></pre></bdo></b><th id='yaPwH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yaPwH'><tfoot id='yaPwH'></tfoot><dl id='yaPwH'><fieldset id='yaPwH'></fieldset></dl></div>

        如何在經典 ASP 中返回 JSON 對象

        How to return a JSON object in classic ASP(如何在經典 ASP 中返回 JSON 對象)
        <legend id='4B7pD'><style id='4B7pD'><dir id='4B7pD'><q id='4B7pD'></q></dir></style></legend>
        • <bdo id='4B7pD'></bdo><ul id='4B7pD'></ul>

            <small id='4B7pD'></small><noframes id='4B7pD'>

          1. <tfoot id='4B7pD'></tfoot>

              • <i id='4B7pD'><tr id='4B7pD'><dt id='4B7pD'><q id='4B7pD'><span id='4B7pD'><b id='4B7pD'><form id='4B7pD'><ins id='4B7pD'></ins><ul id='4B7pD'></ul><sub id='4B7pD'></sub></form><legend id='4B7pD'></legend><bdo id='4B7pD'><pre id='4B7pD'><center id='4B7pD'></center></pre></bdo></b><th id='4B7pD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4B7pD'><tfoot id='4B7pD'></tfoot><dl id='4B7pD'><fieldset id='4B7pD'></fieldset></dl></div>

                  <tbody id='4B7pD'></tbody>

                  本文介紹了如何在經典 ASP 中返回 JSON 對象的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想使用經典的 ASP 腳本返回一個 JSON 對象(它是 AJAX 請求的一部分).

                  I want to return a JSON object using a classic ASP script (it's part of an AJAX request).

                  如果我只是將回復發送為如下文本:

                  If I just send the reponse as text like:

                  response.write("{ query:'Li', suggestions:['Liberia','Libyan Arab Jamahiriya','Liechtenstein','Lithuania'], data:['LR','LY','LI','LT'] }")
                  

                  這會起作用嗎,還是我真的需要一個 JSON 庫?

                  will this work, or do I actually need a JSON library?

                  我正在嘗試在 http://www.devbridge.com/projects/autocomplete/jquery/#howto 工作.

                  I'm trying to get the autocomplete plugin at http://www.devbridge.com/projects/autocomplete/jquery/#howto to work.

                  javascript:

                  javascript:

                   $(document).ready(function() {
                      var a = $('#txtValue').autocomplete({ 
                      serviceUrl:'script.asp',
                      minChars:2, 
                      maxHeight:400,
                      width:300,
                      zIndex: 9999,
                      deferRequestBy: 0, //miliseconds
                      onSelect: function(value, data){ alert('You selected: ' + value + ', ' + data); },
                  });
                  

                  平均售價:

                  <% 
                  response.ContentType = "application/json"
                  response.write("{ query:'Li', suggestions:['Liberia','Libyan Arab Jamahiriya','Liechtenstein','Lithuania'], data:['LR','LY','LI','LT'] }") 
                  %>
                  

                  自動完成功能不起作用.如果我使用像這樣的本地查找數組,它會起作用查找:['一月','二月','三月','四月','五月']

                  Autocomplete is not working. It works if I use a local lookup array like lookup: ['January', 'February', 'March', 'April', 'May']

                  但是 ajax 有問題,這意味著它不能正確返回列表.

                  But there's something wrong with the ajax meaning it doesn't return the list properly.

                  推薦答案

                  好像是客戶端解析錯誤.

                  It appears to be a parsing error on the client side.

                  我不認為這會有所作為,但看起來如果你引用所有內容,包括屬性名稱,它似乎可以工作.并使用雙引號而不是單引號 - 這顯然會有所作為.

                  I didn't think this would make a difference, but it looks like if you quote everything, including the property names, it seems to work. And use double-quotes instead of single quotes - that apparently is making a difference.

                  記得把你的雙引號加倍(至少我認為你在 VBScript 中是這樣做的——已經很久了).

                  Remember to double your double-quotes (at least I think that's how you do it in VBScript - been a long time).

                  所以:

                  <%
                      Response.ContentType = "application/json"
                      Response.Write("{ ""query"":""Li"", ""suggestions"":[""Liberia"",""Libyan Arab Jamahiriya"",""Liechtenstein"",""Lithuania""], ""data"":[""LR"",""LY"",""LI"",""LT""] }")
                  %>
                  

                  這篇關于如何在經典 ASP 中返回 JSON 對象的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  XmlHttpRequest onprogress interval(XmlHttpRequest onprogress 間隔)
                  How can I modify the XMLHttpRequest responsetext received by another function?(如何修改另一個函數接收到的 XMLHttpRequest 響應文本?)
                  What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get(XMLHttpRequest、jQuery.ajax、jQuery.post、jQuery.get 有什么區別)

                • <small id='bBo5C'></small><noframes id='bBo5C'>

                  <legend id='bBo5C'><style id='bBo5C'><dir id='bBo5C'><q id='bBo5C'></q></dir></style></legend>

                      • <tfoot id='bBo5C'></tfoot>

                          <bdo id='bBo5C'></bdo><ul id='bBo5C'></ul>
                            <tbody id='bBo5C'></tbody>
                          <i id='bBo5C'><tr id='bBo5C'><dt id='bBo5C'><q id='bBo5C'><span id='bBo5C'><b id='bBo5C'><form id='bBo5C'><ins id='bBo5C'></ins><ul id='bBo5C'></ul><sub id='bBo5C'></sub></form><legend id='bBo5C'></legend><bdo id='bBo5C'><pre id='bBo5C'><center id='bBo5C'></center></pre></bdo></b><th id='bBo5C'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bBo5C'><tfoot id='bBo5C'></tfoot><dl id='bBo5C'><fieldset id='bBo5C'></fieldset></dl></div>
                            主站蜘蛛池模板: 亚洲精品视频在线播放 | 免费观看一区二区三区毛片 | 日本一区二区三区在线观看 | 91精品久久久久久久久中文字幕 | 国产精品久久一区二区三区 | 国产成人一区在线 | 久久久久se | 黄色成人av| 色综合一区二区 | 亚洲国产成人av好男人在线观看 | h视频免费在线观看 | 成人性视频免费网站 | 国产在线精品一区二区 | 免费观看一级特黄欧美大片 | 蜜臀久久99精品久久久久久宅男 | 男女羞羞视频大全 | 欧美精品在线播放 | 日日骚网| 天天综合网7799精品 | 国产一区二区在线免费 | 91一区二区 | www.国产一区 | 免费观看一级特黄欧美大片 | 久久高清国产视频 | 涩涩视频网站在线观看 | av黄色国产| 人人人人干 | 日韩在线资源 | 成年人黄色一级片 | 人人九九精| 亚洲视频免费播放 | 久久国产一区二区三区 | 日韩一区二区三区在线观看视频 | 成人在线观看网址 | 酒色成人网 | 久久精品视频在线播放 | 99re免费 | 国产高清视频一区二区 | 国产日韩一区二区 | 亚洲精品一区二区三区在线 | 亚洲精品第一 |