推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
EXDestroyer

频繁对接口轮询调用为何会偶尔报错?

  •  
  •   EXDestroyer · May 29, 2016 · 4373 views
    This topic created in 3832 days ago, the information mentioned may be changed or developed.

    Uncaught TypeError: jsonp20 is not a function Uncaught TypeError: jsonp22 is not a function ....... http://ww1.sinaimg.cn/mw690/69dd3998gw1f4c12l24ccj20i103rq49.jpg 一个刷新操作如果正常点击是没问题的,要是每隔几秒自动调用一次浏览器就会报这种错

    5 replies  •  2016-05-29 14:12:34 +08:00
    loading
    loading
    May 29, 2016 via Android
    1
    超时?建议 alert jsonop 看看
    airyland
    airyland
    May 29, 2016
    2
    问题不完整,明显你代码没有注册相应的全局函数来处理返回的 script 数据。
    EXDestroyer
    EXDestroyer
    OP
    May 29, 2016
    3
    @airyland 然而这个是直接用 jQuery 封装的 ajax 来进行 jsonp 处理的..
    airyland
    airyland
    May 29, 2016
    4
    @EXDestroyer 没有代码判断不了错误。 jQuery 默认是用随机的字符做回调函数名,看你这里是指定了回调名字,应该是这里有问题。
    akira
    akira
    May 29, 2016
    5
    加载不完整
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1109 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:11 · PVG 07:11 · LAX 15:11 · JFK 18:11
    ♥ Do have faith in what you're doing.