草庐IT

out_of_sample_df

全部标签

javascript - RadAjaxManager AjaxRequest 类型错误 : Cannot read property 'id' of undefined

情况是这样的:我有一个加载自定义Web用户控件的主机页面。在我的web控件中,我想使用javascript和RadAjaxManager来加载第二个web用户控件。我使用Telerik的这个例子作为指导:http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/clientsideapi/defaultvb.aspx但是,当我在RadAjaxManager上调用客户端“ajaxRequest”方法时,我不断收到以下错误。TypeError:Cannotreadproperty'id'ofundefined

javascript - 错误 Vue.js "Cannot read property ' props' of undefined"

在gorails上做了所有事情吗?教程,但出了点问题。Chrome中的错误消息:UncaughtTypeError:Cannotreadproperty'props'ofundefinedatnormalizeProps(vue.runtime.esm.js?ff9b:1291)atmergeOptions(vue.runtime.esm.js?ff9b:1363)atmergeOptions(vue.runtime.esm.js?ff9b:1372)atVue$3.Vue._init(vue.runtime.esm.js?ff9b:4268)atnewVue$3(vue.runtim

javascript - "Cannot read property ' classList ' of null"使用classList.add时

我有这个错误,但因为我不熟悉代码。它来自startbootstrap(Creative)中的一个主题。文件是classie.js代码:/*!*classie-classhelperfunctions*frombonzohttps://github.com/ded/bonzo**classie.has(elem,'my-class')->true/false*classie.add(elem,'my-new-class')*classie.remove(elem,'my-unwanted-class')*classie.toggle(elem,'my-class')*//*jshintb

javascript - CucumberJS - 错误 : Step timed out after 5000 milliseconds at Timer. listOnTimeout (timers.js:92:15)

我是cucumberjs的新手,只是第一次尝试运行一个功能。我已经构建了cucumber-jsgithubpage上的功能.尝试运行时出现此错误:Benjamins-MBP:FeaturesBen$cucumber.jsexample.featureFeature:ExamplefeatureAsauserofcucumber.jsIwanttohavedocumentationoncucumberSothatIcanconcentrateonbuildingawesomeapplicationsScenario:Readingdocumentation#example.feature

Javascript 类型错误 : Cannot read property 'indexOf' of undefined

在这段代码中,我想从cart_products数组中删除一个元素。varcart_products=["17^1","19^1","18^1"];varproduct=17;$.each(cart_products,function(key,item){if(item.indexOf(product+"^")!==-1){cart_products.splice(key,1);}});但我在GoogleChrome控制台中收到此错误:UncaughtTypeError:Cannotreadproperty'indexOf'ofundefined代码有问题吗?感谢您的帮助。

javascript - 未捕获的类型错误 : Cannot read property 'safari' of undefined

我有这个jjavascript来调整iframe的大小:$(function(){variFrames=$('iframe');functioniResize(){for(vari=0,j=iFrames.length;i在chrome中,这里有问题:if($.browser.safari||$.browser.opera){我收到这个错误有什么原因吗?我使用的是最新的JQuery?谢谢 最佳答案 您可能正在使用jQuery1.9或更高版本,在这种情况下$.browser自1.3起被弃用后被正式删除。您可以使用jQuerymigra

javascript - UnderscoreJS 未捕获类型错误 : Cannot call method 'replace' of undefined

在我的BackboneView中我有:noteTemplate:_.template($('#note-template').html()),这是抛出这个错误。模板是:Created3daysagoIn3hours我很困惑,因为这在我的控制台中有效:>>_.template($('#note-template').html());函数(n){returne.call(this,n,w)}完整代码如下:App.Views.Index=Backbone.View.extend({el:$("div.reminders"),todays:$("span.today"),tomorrows:$

javascript - D3 饼图 : Uncaught Type Error - Cannot read property 'pie' of undefined

我正在尝试基于此resource创建一个d3饼图.但是,我收到以下错误:UncaughtTypeError-Cannotreadproperty'pie'ofundefined我的代码:classPieChartextendsReact.Component{constructor(){super();//-Thisiswheretheerrorisoccuring!this.pie=d3.layout.pie().value((d)=>d.value);this.colors=d3.scale.category10();}arcGenerator(d,i){return();}rend

javascript - HTML5 Canvas : find out if click co-ordinates are inside a given rectangle

可能有人在这个困境上有过类似的经历,可以帮助我走出困境......基本上,我有一个Canvas元素,我使用在循环中绘制几个矩形context.fillRect(x,y,width,height)现在,我希望一些矩形成为热点并响应点击事件。我可以使用event.layerX和event.layerY找出点击事件的确切(x,y)。鉴于我知道以下内容:点击的确切x,y每个矩形的x、y、宽度和高度我如何确定点击事件是否发生在某个矩形的周边内?并且,点击事件发生在哪个矩形0n?有类似的数学公式吗?任何帮助将不胜感激,如果我不够清楚,请告诉我......谢谢编辑没有比遍历所有矩形并检查它们的位置和

javascript - 未捕获的类型错误 : Cannot call method 'request' of undefined

在我的javascript代码中,我不断收到以下错误:未捕获的类型错误:无法调用未定义的方法“请求”我的Javascript在下面。如有任何帮助,我们将不胜感激!myJsonStore={store1:newExt.data.JsonStore({root:'rootstore1',fields:['UserID','UserName']})};//------Mypanel------items:[{xtype:'combo',id:'UName',fieldLabel:'User',emptyText:'All',store:myJsonStore.store1,displayFi