草庐IT

plugins_not_found

全部标签

javascript - 引用错误 : resolve is not defined

我有一个调用谷歌语音API的函数。看起来一切都很好,但我找不到为什么它会给我错误。我是Node和promise的初学者,所以不确定为什么会出现此错误。ReferenceError:resolveisnotdefinedatindex.js:57问题出在这部分代码:returnspeech.longRunningRecognize(responses).then(function(results){varoperation=responses[0];console.log("Operation:",operation);returnoperation.promise();}).then(

javascript - JQuery 可拖动 : scroll not working when helper: clone is used

我有一种文件夹列表类型的情况,我可以使用jquerydraggable/droppable将项目从一个文件夹拖到另一个文件夹。文件夹项目是可拖动的,文件夹是可放置的。它们位于一个小到足以显示垂直滚动条的div中。我在可拖动项上设置了“scroll:true”,这样它们就可以使div滚动。当我还在可拖动项目上使用“helper:"clone"”时,滚动不再有效。我做错了什么?这是一些非常简化的代码:dropheredragmedragmedragmedropheredropheredragmedragmedragmedragmedropheredropheredropheredrophe

javascript - 编译转换 : The type or namespace name could not be found when running TypeLite. tt

免责声明:我对这里使用的几乎每一项技术都是新手,所以如果我遗漏了明显的内容,请原谅我......我开始将MVC4与EntityFramework5和WebAPI混为一谈,我想使用TypeScript和Knockout来做一些UI的事情。我找到了TypeLite项目,它将采用我的EF模型并为我生成TypeScript接口(interface),以便所有内容都是“强”类型的。我的解决方案包含3个项目:MyApp.dll=包含所有MVC工作MyApp.Domain.dll=包含EF域模型MyApp.WebAPI.dll=包含WebAPI工作我将TypeLite引用添加到MyApp项目(通过N

javascript - Angular JS 错误 : [$injector:nomod] Module 'portfolioMockupApp.services' is not available

我正在尝试使用Karma编写一些单元测试,但收到以下错误:PhantomJS1.9.8(MacOSX)错误错误:[$injector:nomod]模块“portfolioMockupApp.services”不可用!您要么拼错了模块名称,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。http://errors.angularjs.org/1.3.3/$injector/nomod?p0=portfolioMockupApp.services在/Users/danielbogart/Documents/coding/work/portfolio-mockup/bower_

javascript - ngx-datatables 在排序时给出 "rxjs_1.fromEvent is not a function"错误

我只是按照演示来展示一个简单的数据表。这是我的代码:columns=[{name:'ID',prop:'id'},{name:'StreetAddress',prop:'address.street'},{name:'Suburb',prop:'address.suburb'},{name:'State',prop:'address.state'},{name:'ManagerName',prop:'manager.name'},{name:'ManagerCompany',prop:'manager.company'},];排序确实有效,但是,当我单击列对记录进行排序时,我也会收到此

javascript - 继承和 TypeScript 错误 : X is not a constructor function type

我有一个父类(superclass),我希望从中继承其他两个类。下面列出了这些类(class)。当我编译时,试图继承的两个类提示父类(superclass)(给出相同的错误):“[类文件路径(在本例中为A)]不是构造函数类型”A.tsexportclassA{//privatefields...constructor(username:string,password:string,firstName:string,lastName:string,accountType:string){//initialisation}}B.tsimportA=require('./A);exportc

javascript - 无法在 'requestAnimationFrame' : The callback provided as parameter 1 is not a function. 上执行 'Window'

不确定我在这里做错了什么......window.requestAnimFrame=function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(/*function*/callback){window.setTimeout(callback,1000/60);});}();

javascript - 谷歌地图 API v3 - TypeError : Result of expression 'google.maps.LatLng' [undefined] is not a constructor

我正在创建一个静态html页面来显示数据中的多个位置。我刚刚复制了其中一个示例并正在向后工作,但我在Safari检查器中收到以下错误:main.js:1SyntaxError:Parseerrorsample.htm:10TypeError:Resultofexpression'google.maps.LatLng'[undefined]isnotaconstructor.这是我的html代码:MultiMarkersSampleviaGoogleMapsfunctioninitialize(){varmyLatlng=newgoogle.maps.LatLng(-30.2965590

javascript - Microsoft JScript 运行时错误 : Member not found

我正在使用asp.netmvc3和jquery对话在主视图中打开部分View这是我的结构..局部View1局部View2//someelements@Html.RenderPartial("partialview1");View1//someelementloadpartialview2asjquerydialoguemyscript.jsfunctionfunction1(){//somecode}这只是我的应用程序的概述现在在上面的结构中,如果我单击partialview1中的按钮,我会收到此错误:MicrosoftJScript运行时错误:找不到成员。

javascript - Chrome Extension : Port error: Could not establish connection. 接收端不存在。

当尝试在我的内容脚本和背景脚本之间进行通信时,出现以下错误:Porterror:Couldnotestablishconnection.Receivingenddoesnotexist.Errorineventhandlerfor'undefined':Cannotreadproperty'message'ofundefinedTypeError:Cannotreadproperty'message'ofundefinedbackground.jsfunctiononRequest(request,sender,callbackFunction){console.log("Me(BS)