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

    2. <tfoot id='XMyT9'></tfoot>

      • <bdo id='XMyT9'></bdo><ul id='XMyT9'></ul>
      <i id='XMyT9'><tr id='XMyT9'><dt id='XMyT9'><q id='XMyT9'><span id='XMyT9'><b id='XMyT9'><form id='XMyT9'><ins id='XMyT9'></ins><ul id='XMyT9'></ul><sub id='XMyT9'></sub></form><legend id='XMyT9'></legend><bdo id='XMyT9'><pre id='XMyT9'><center id='XMyT9'></center></pre></bdo></b><th id='XMyT9'></th></span></q></dt></tr></i><div id='XMyT9'><tfoot id='XMyT9'></tfoot><dl id='XMyT9'><fieldset id='XMyT9'></fieldset></dl></div>
      1. <legend id='XMyT9'><style id='XMyT9'><dir id='XMyT9'><q id='XMyT9'></q></dir></style></legend>
      2. 在某些(不是全部)浏览器中读取 D3 javascript 中的 JSON 文件时出现问题

        Problems reading JSON file in D3 javascript in some (not all) browsers(在某些(不是全部)浏览器中读取 D3 javascript 中的 JSON 文件时出现问题)

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

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

                <tbody id='aVKSd'></tbody>
            • <legend id='aVKSd'><style id='aVKSd'><dir id='aVKSd'><q id='aVKSd'></q></dir></style></legend>
            • <tfoot id='aVKSd'></tfoot>
              • <bdo id='aVKSd'></bdo><ul id='aVKSd'></ul>

                  本文介绍了在某些(不是全部)浏览器中读取 D3 javascript 中的 JSON 文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在读取 JSON 文件后立即在 Chrome 中收到此错误.它可以在 Safari 和 Firefox 中正常运行.

                  I get this error in Chrome immediately after reading a JSON file. It works correctly in Safari and Firefox.

                  console.log ("事件 -> "+ postcards.nodes[0].node.event);//Safari 中的 "tally" "TypeError: Cannot read property 'node' of undefined" 在 Chrome 中.<

                  console.log ("event -> "+ postcards.nodes[0].node.event); // "tally" in Safari "TypeError: Cannot read property 'node' of undefined" in Chrome.<

                  嵌套 JSON 文件中的级别是否有限制?我从 Drupal 视图生成 JSON.这里是开始:

                  Is there a limit to the levels in a nested JSON file? I generate the JSON from a Drupal view. Here here is the start:

                  {"nodes":[{"node":{"w1":"","w2":"1","w3":"","w4":"", ...<
                  

                  这里是 Javascript:

                  Here is the Javascript:

                  d3.json(
                    "/sites/default/d3_files/json/toronto-wards.json", 
                    function(error,wards) {
                      d3.json("/postcards-json", function(error, postcards) {
                        console.log ("event -> "+ postcards.nodes[0].node.event); // tally in Safari
                  

                  我正在使用 macOS,而我的朋友使用 Windows 在 Firefox 中遇到了同样的错误.

                  I'm using macOS and my friends using Windows get the same error in Firefox.

                  根据要求,我认为这是 XHR 消息:

                  As per request here is what I think is the XHR message:

                  d3.min.js:1 XHR finished loading: GET "http://www.stopplastics.ca/postcards-json".
                  

                  推荐答案

                  问题是由于 Drupal 视图没有正确创建造成的.与 Chrome 浏览器无关.

                  The problem was caused by the Drupal view not being created correctly. Nothing to do with the Chrome browser.

                  这篇关于在某些(不是全部)浏览器中读取 D3 javascript 中的 JSON 文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ajax请求获取json数据并处理的实例代码 $.ajax({ type: 'GET', url: 'https://localhost:44369/UserInfo/EditUserJson',//请求数据 data: json,//传递数据 //dataType:'json/text',//预计服务器返回的类型 timeout: 3000,//请求超时的时间 //回调函数传参 suc
                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                    <bdo id='Pb606'></bdo><ul id='Pb606'></ul>
                    <legend id='Pb606'><style id='Pb606'><dir id='Pb606'><q id='Pb606'></q></dir></style></legend>

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

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

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