Questions tagged «referenceerror»

30
未捕获ReferenceError:未定义$?
此代码如何引发 未捕获的ReferenceError:未定义$ 以前什么时候可以? $(document).ready(function() { $('#tabs > ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid > ul').tabs(); }); 选项卡中的结果不再关闭。 标题中引用了jQuery: <script language="JavaScript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/sprinkle.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-1.2.6.min.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-ui-personalized-1.5.2.packed.js"></script>

4
未捕获的ReferenceError:未定义ytcfg(也未定义__ytRIL)
我使用YouTube IFrame Player API已有数月没有问题,并且最近在播放器加载时开始出现此异常: Uncaught ReferenceError: ytcfg is not defined 检查iframe,我看到对的成功调用yt.setConfig,但ytcfg.set稍后失败。API最近更改了吗?任何播放器参数都可能导致此问题? <script src="//s.ytimg.com/yts/jsbin/www-embed-player-vflnzmqns/www-embed-player.js" type="text/javascript" name="www-embed-player/www-embed-player"></script> <script src="//s.ytimg.com/yts/jsbin/player-en_US-vflr--npw/base.js" name="player/base"></script> <script> yt.setConfig({ ... }); writeEmbed(); </script> <script> ytcsi.info('st', 35); ytcfg.set({ "TIMING_ACTION": "", "CSI_VIEWPORT": true, "TIMING_INFO": { "c": "WEB", "yt_li": 1, "cver": "1.20161112", "yt_lt": "cold" }, "CSI_SERVICE_NAME": "youtube" }); ;</script> 此问题有几种变体: https://issuetracker.google.com/issues/35178202 “未定义ytcfg” …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.