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

<tfoot id='yFbn0'></tfoot>

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

        • <bdo id='yFbn0'></bdo><ul id='yFbn0'></ul>
      1. <legend id='yFbn0'><style id='yFbn0'><dir id='yFbn0'><q id='yFbn0'></q></dir></style></legend>
      2. <i id='yFbn0'><tr id='yFbn0'><dt id='yFbn0'><q id='yFbn0'><span id='yFbn0'><b id='yFbn0'><form id='yFbn0'><ins id='yFbn0'></ins><ul id='yFbn0'></ul><sub id='yFbn0'></sub></form><legend id='yFbn0'></legend><bdo id='yFbn0'><pre id='yFbn0'><center id='yFbn0'></center></pre></bdo></b><th id='yFbn0'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yFbn0'><tfoot id='yFbn0'></tfoot><dl id='yFbn0'><fieldset id='yFbn0'></fieldset></dl></div>

      3. XHR/使用 D3 發布請求

        XHR / Post Request using D3(XHR/使用 D3 發布請求)
        • <tfoot id='YbqXS'></tfoot>
            <bdo id='YbqXS'></bdo><ul id='YbqXS'></ul>

              <tbody id='YbqXS'></tbody>

              <legend id='YbqXS'><style id='YbqXS'><dir id='YbqXS'><q id='YbqXS'></q></dir></style></legend>
              1. <small id='YbqXS'></small><noframes id='YbqXS'>

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

                  本文介紹了XHR/使用 D3 發布請求的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在研究如何使用非常強大的 D3(我可以完全推薦用于數據可視化)并找到了 D3 的作者目前所在的 xhr2 分支致力于 xhr POST 請求(和其他請求類型)支持.

                  I was doing a research on how to make POST requests using the amazingly powerful D3 (which I can fully fully recommend for data visualization) and found the xhr2 branch where the authors of D3 are currently working on xhr POST request (and other request types) support.

                  似乎這是一個全新的功能,因為合并請求來自昨天(2012 年 9 月 18 日):) 出于好奇,我已經想嘗試一下,使用以下代碼序列(我從這個 位置)

                  Seems like it is a brand new feature as the merge request is from yesterday (18 September 2012) :) And as curious I am I already wanted to try it out, using the following code sequence (which I have from this location)

                   d3.text("localhost/test",function(d) { console.log(d)})
                           .method("POST")
                           .setRequestHeader("Content-type", "application/x-www-form-urlencoded")
                           .data("a=1&b=2&c=3");
                  

                  很遺憾,我收到以下錯誤消息.

                  Unfortunately I'm getting the following error message.

                  TypeError: 'undefined' 不是函數(評估'd3.text("localhost/test",function(d) { console.log(d)}).method("POST")')

                  TypeError: 'undefined' is not a function (evaluating 'd3.text("localhost/test",function(d) { console.log(d)}) .method("POST")')

                  我正在使用 縮小版 D3來自 xhr2 分支.有人知道要改變什么嗎?

                  I'm using the minified D3 version from the xhr2 branch. Anybody an idea what to change?

                  推薦答案

                  API仍在開發中.如果你想試試看,目前的 API 是這樣的:

                  The API is still under development. If you want to try it out, the current API is like so:

                  d3.text("/test")
                      .header("Content-type", "application/x-www-form-urlencoded")
                      .post("a=1&b=2&c=3", function(error, text) { console.log(text); });
                  

                  如果您想要完整的請求對象而不僅僅是 responseText,您也可以直接使用 d3.xhr 而不是 d3.text.

                  You can also use d3.xhr rather than d3.text directly if you want the full request object rather than just the responseText.

                  更新到最新的 API.

                  Updated to latest API.

                  這篇關于XHR/使用 D3 發布請求的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  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 部分內容)
                    <bdo id='rfFJA'></bdo><ul id='rfFJA'></ul>
                    <legend id='rfFJA'><style id='rfFJA'><dir id='rfFJA'><q id='rfFJA'></q></dir></style></legend>
                      <tbody id='rfFJA'></tbody>
                    <tfoot id='rfFJA'></tfoot>

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

                          1. <small id='rfFJA'></small><noframes id='rfFJA'>

                            主站蜘蛛池模板: 日韩中文视频 | 青青草在线视频免费观看 | 玖玖久久 | 久久久综合久久 | 日韩高清中文字幕 | 亚洲天堂日韩精品 | 黄网站涩免费蜜桃网站 | 久夜精品 | 中文字幕一区在线 | 欧美黄 片免费观看 | 激情一区| 蜜桃视频一区二区三区 | 欧美美女一区二区 | 欧美日韩视频在线第一区 | 日韩精品 | 精品久久久久国产免费第一页 | 99精品亚洲国产精品久久不卡 | 国产九九九 | 国产日韩欧美 | 亚洲三区视频 | 亚洲精品在线国产 | 午夜激情免费 | 久久久久黄| 91av小视频 | 欧美jizzhd精品欧美巨大免费 | 免费在线精品视频 | 欧美人妖网站 | 欧美日韩午夜精品 | 一区二区高清 | 成人久久久 | 精产嫩模国品一二三区 | 久久久久久久网 | 免费黄色av网站 | 成年人网站免费视频 | 午夜精品在线观看 | 久久精品一区二区视频 | 成人免费观看男女羞羞视频 | 日韩在线精品视频 | 久久久久久国产精品 | 少妇特黄a一区二区三区88av | 亚洲激情一区二区 |