jjzjj

uncaught

全部标签

javascript - CKEditor 4 : Uncaught TypeError: Cannot read property 'langEntries' of null

我正在为CK编辑器(https://github.com/galetahub/ckeditor)使用Rubygem,但出现此错误:UncaughtTypeError:Cannotreadproperty'langEntries'ofnull这是它在代码中出现的地方:CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){vard={};returnfunction(b,c,e){vari={},g=function(b){a.call(this,b,function(a){CKEDI

javascript - window.onload 工作,但 Chrome 控制台显示 : Uncaught TypeError: window. onload 不是函数

我想在页面加载时运行getLocation()方法。我添加了:window.onload(getLocation());并按照我的意愿调用了该函数,但Chrome控制台显示:UncaughtTypeError:window.onloadisnotafunction(anonymousfunction)@(index):116window.onload(getLocation());View位于底部:@{ViewBag.Title="HomePage";}GecodingDemoJavaScript:@sectionScripts{varx=document.getElementById

javascript - Uncaught ReferenceError : Class is not defined?

我很想知道为什么会出现此错误?我已经从网站beezid.com(carousel.js)文件中复制了它,并且我正在尝试将与他们相同的幻灯片放到我的网站上以更新它。如您所见我对此有疑问??他们的网站没有出现这个错误?carousel.js:26UncaughtReferenceError:ClassisnotdefinedCarousel=Class.create(Abstract,{initialize:function(scroller,slides,controls,options){this.scrolling=false;this.scroller=$(scroller);th

javascript - 全日历 v2 错误 : Uncaught TypeError: Cannot read property 'month' of undefined

我在添加事件时使用了选择回调。以下代码在v1中有效,但我在v2中遇到了UncaughtTypeError。当我删除ajax代码时没有错误,但我当然需要将新事件添加到数据库中。select:function(start,end,jsEvent,view){vartitle='Available';vareventData;eventData={title:title,start:start};$.ajax({type:'POST',url:'add-event.php',data:eventData,success:function(data){$('#calendar').fullCa

javascript - Uncaught TypeError : this. y.rangeBand 不是迁移到 D3 版本 4 后的函数

我正在尝试将我的代码从D3版本3迁移到版本4。这是我的版本3的代码:this.x=d3.scale.linear().range([0,this.width]);this.y=d3.scale.ordinal().rangeRoundBands([-20,this.yItemsHeight],.1,1);this.xAxis=d3.svg.axis().scale(this.x).orient("top");this.yAxis=d3.svg.axis().scale(this.y).orient("left");...this.svg.selectAll(".bar").data(d

javascript - Uncaught ReferenceError : 'functionName' not defined

所以我检查了.jsp文件中的脚本标签:"somecontenthere...."在同一个.jsp文件中我有一个标签:但是,在我的JavaScript文件中我有:$(document).ready(function(){$('current').click(function(event){functionfunctionName(){.......}不知何故,我的Chrome控制台不断收到错误消息:UncaughtReferenceError:未定义函数名 最佳答案 将你的functionName()移到$(document).rea

javascript - Uncaught ReferenceError : myFunction is not defined

报错。我将代码放在之前.仍然出现错误。JS,varnexturl="";varlastid="";varparam;$(document).ready(function(){functionmyFunction(){param=$('#search').val();alert("Iamanalertbox!");if(param!=""){$("#status").show();varu='https://graph.facebook.com/search/?callback=&limit=100&q='+param;getResults(u);}}$("#more").click(f

javascript - 错误 : Uncaught SyntaxError: Unexpected token &

从模型向JavaScript发送JSON数据时出现错误。看起来编码是导致错误的原因,但我发现的所有示例都适用于其他人。如何正确地将模型数据从我的View发送到JavaScript?查看代码:defhome(request):importjsoninfo_obj=Info.objects.all()json_data=serializers.serialize("json",info_obj)returnrender_to_response("pique/home.html",{'json_data':json_data},context_instance=RequestContext(

javascript - Uncaught Error : Could not find module `ember` imported from `ui/app` loader. js:164

我使用以下命令构建并提供我的ember应用程序:ember构建Ember服务两者都按预期工作。然后我转到以下localhost:4200URL来查看应用程序并在javascript控制台中看到以下错误:UncaughtError:AssertionFailed:EmberViewsrequirejQuerybetween1.7and2.1ember.debug.js:5921UncaughtError:Couldnotfindmodule`ember`importedfrom`ui/app`loader.js:164不太确定为什么找不到jquery或ember模块?Ember版本:ve

javascript - Google Maps Uncaught TypeError : b. has is not a function

我们使用以下代码将GoogleMapsAPIV3包含在我们的内部系统中:脚本src="https://maps.googleapis.com/maps/api/js?key=&libraries=places,geometry"这在几个小时前(澳大利亚东部标准时间上午9点)之前一直有效,现在在控制台中返回的所有内容是:未捕获类型错误:b.has不是函数来自https://maps.googleapis.com/maps-api-v3/api/js/35/3/map.js有没有人遇到同样的问题?如果包含来自Google服务器的代码,我该如何解决? 最佳答案