草庐IT

edge_property_c

全部标签

javascript - IE 和 Edge 中的 Mousewheel 和 dommousescroll 事件

我有这个代码:Titlewindow.addEventListener('DOMMouseScroll',mouseWheelEvent);window.addEventListener('mousewheel',mouseWheelEvent);functionmouseWheelEvent(){alert(1);}它适用于Chrome和Firefox。但是,它不适用于我的笔记本电脑dellxps139434在IE和edge中的触摸板。但它确实适用于(某些)其他笔记本电脑的触摸板。该怎么办?jQuery没问题。“什么不起作用?”=>像您在浏览器中滚动时那样使用2根手指时,滚动时没有提

javascript - 未捕获的类型错误 : cannot read property 'replace' of undefined In Grid

我是KendoGrid和KendoUI的新手。我的问题是如何解决此错误UncaughtTypeError:Cannotreadproperty'replace'ofundefined这是我在KendoGrid上的代码$("#Grid").kendoGrid({scrollable:false,sortable:true,pageable:{refresh:true,pageSizes:true},dataSource:{transport:{read:{url:'/Info/InfoList?search='+search,dataType:"json",type:"POST"}},p

javascript - 类型错误 : Attempted to assign to readonly property

我在为指令编写测试时遇到了这个错误(使用generator-angular-module):src/capitalize.js:'usestrict';angular.module('jviotti.string',[]).filter('capitalize',function(){returnfunction(input){returninput.replace(/\w\S*/g,function(txt){returntxt.charAt(0).toUpperCase()+txt.substr(1).toLowerCase();});};});测试/规范/capitalize.j

javascript - Windows 10 32 位上的 Edge 阻止对本地主机的 ajax 调用,网络错误 0x2efd

我们有一个使用SignalR与本地扫描仪驱动程序对话的应用程序,该应用程序已经在IE、Chrome和Firefox上投入生产了几年,它们在拉下SignalR的hubsjs头文件时没有问题。Edge推出后,我们发现与localhost通信存在问题,经过长时间的努力找到允许其通信的设置(并且经过数小时的Microsoft票证,他们没有找到解决方案),我们决定添加header以允许Edge授予访问域:访问控制允许来源:https://localhost:11000这似乎有效,但我们几乎没有注意到它适用于64位Windows10Edge,但不适用于32位Windows10Edge。我花了几个小

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

当我尝试从AJAX调用中获取数据并在单击提交按钮时将其插入另一个函数时,如何避免出现以下错误?ajax函数中的console.log调用显示数据已被抓取,我希望然后存储在json_data中。当时的目的是使用此数据来更改通过HTML表单提交的字符串。然后在“点击”函数的行返回错误:console.log(json_data.length);TestForm#results_box{border:red5pxsolid;}#place{border:#cccccc1pxsolid;}$(document).ready(function(){varjson_source="https://

javascript - IE 11 浏览器错误 - 异常 : Object doesn't support property or method 'matches' , 其他浏览器工作正常

就我而言,该网页在firefox和chrome浏览器中运行良好,但在IEv.11中它显示错误为errorcomesinIE11DEVELOPERTOOLS.该错误显示在IE11的开发人员工具中。该错误不允许打开特定链接,单击它会显示以下错误。polyfills.ts-*BROWSERPOLYFILLS*//**IE9,IE10andIE11requiresallofthefollowingpolyfills.**/import'core-js/es6/symbol';import'core-js/es6/object';import'core-js/es6/function';impo

javascript - 错误 :InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in property lat: not a number

functioninitAutocomplete(){varlat=document.getElementById('lat').value;varlng=document.getElementById('lng').value;console.log(lat);console.log(lng);varmap=newgoogle.maps.Map(document.getElementById('map'),{center:{lat:lat,lng:lng},zoom:13,mapTypeId:'roadmap'});}它给了我以下错误:error:InvalidValueError:

javascript - 自定义过滤器在 AngularJS 中给出 "Cannot read property ' 切片' of undefined"

我的自定义startFrom过滤器给我一个错误。app.filter('startFrom',function(){returnfunction(input,start){start=+start;//parsetointreturninput.slice(start);}});app.controller("PostCtrl",function($scope,$http){$scope.currentPage=0;$scope.pageSize=10;$scope.hidePagination=true;$scope.search=function(){$http.get('some

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

我正在尝试使用.getElementsByTagName()选择元素。vartags=document.body.getElementsByTagName("*");当前尝试使用从现有答案中吸取的教训https://stackoverflow.com/questions/7410949/javascript-document-getelementsbyclassname-compatibility-with-ie/7410966#7410966但是我的尝试失败了,出现了这个错误:UncaughtTypeError:Cannotreadproperty'getElementsByTagN

javascript - Visual Studio 将 Javascript 调试与 Windows 10 Edge 集成

有什么方法可以在Windows10Edge中启用VisualStudio集成Javascript调试器?我指的是从VisualStudioIDE内部逐步执行代码、设置断点等的功能。我正在使用VisualStudio2012和2013,也许这可以通过2015实现? 最佳答案 TLDR;在Edge中运行后,从VisualStudioCommunity2015使用“调试”>“附加到进程”。附加到:脚本代码可用进程:MicrosoftEdgeCP.exe步骤可选:将Edge设置为默认浏览器。在VisualStudio中打开您的项目。在您的J