草庐IT

not_matched

全部标签

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 - 下拉 Javascript 错误 : object doesn't support property or method 'matches'

我正在使用以下JavaScript下拉菜单,它在除新的WindowsEdge之外的所有浏览器中都能完美运行。它显示这个错误:SCRIPT438:Objectdoesn'tsupportpropertyormethod'matches'脚本:/*Whentheuserclicksonthebutton,togglebetweenhidingandshowingthedropdowncontent*/functionmyFunction(){document.getElementById("myDropdown").classList.toggle("show");}//Closethed

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)

javascript - 错误 :Property 'select' does not exist on type HTMLElement

functioncopy(){varUrl=document.getElementById("Id");Url.select();//errordocument.execCommand("Copy");//browsercopy}如上。我正在尝试制作一个在浏览器中复制文本的功能。但是出现了标题错误在typescript中。我认为select()是有效的(link),因为我在演示中使用它时可以正确复制。我的ts版本是2.8.1 最佳答案 您需要添加一个typeassertion:varUrl=document.getElementBy

javascript - 带有 Mailgun 的 AJAX 函数,获取 "ERROR Request header field Authorization is not allowed by Access-Control-Allow-Headers"

我正在努力进行AJAX调用,该调用会命中MailgunAPI以发送电子邮件。Mailgun上的文档说发布请求应该发送到“https://api.mailgun.net/v3/domain.com/messages”。我已经包含了mailgun指定的apikey(他们指示使用用户名“api”)。由于这涉及CORS,我无法克服错误:Access-Control-Allow-Headers不允许请求header字段授权。但是,我检查了“网络”选项卡中的请求/响应,并且Mailgun响应中的“Access-Control-Allow-Origin”设置为“*”...这应该表明它应该允许它?(请

javascript - 谷歌地图脚本打破 Safari TypeError : Result of expression 'document.body' [null] is not an object

我在我的网页中显示谷歌地图,它在除Safari之外的所有浏览器中都能正常工作。Safri使页面变白并且JS错误显示:TypeError:Resultofexpression'document.body'[null]isnotanobject.maps.google.com/maps/api/js?sensor=true®ion=nz&async=2&callback=initializeConfigMap:11TypeError:Resultofexpression'a'[null]isnotanobject.maps.gstatic.com/intl/en_us/mapfile