草庐IT

undefined-index

全部标签

html - Angular 2 - TypeError : Cannot read property 'apply' of undefined

我正在开发一个非常简单的Angular2应用程序,它只有一个组件、一项服务和一个界面,但我遇到了这个错误,经过几个小时的调查我仍然找不到答案。UncaughtTypeError:Cannotreadproperty'apply'ofundefinedatXMLHttpRequest.desc.get[asontimeout](zone.js:1265)atXHRLocalObject.AbstractXHRObject._cleanup(abstract-xhr.js:149)atXMLHttpRequest.xhr.onreadystatechange(abstract-xhr.js

html - z-index 未按预期工作(Chrome 和 Opera)

我有一个类为“opaque”的div和另一个类为“product-info”的div,它们都在同一层。代码如下:fsdfdsfsdfs.opaque{background-color:White;-moz-opacity:.60;filter:alpha(opacity=60);opacity:.60;position:absolute;width:100%;height:100%;left:0;top:0;z-index:1;}.product-info{padding:5px;text-align:center;z-index:2;}请注意,product-info设置为z-ind

html - z-index 未按预期工作(Chrome 和 Opera)

我有一个类为“opaque”的div和另一个类为“product-info”的div,它们都在同一层。代码如下:fsdfdsfsdfs.opaque{background-color:White;-moz-opacity:.60;filter:alpha(opacity=60);opacity:.60;position:absolute;width:100%;height:100%;left:0;top:0;z-index:1;}.product-info{padding:5px;text-align:center;z-index:2;}请注意,product-info设置为z-ind

html - 了解 z-index : How does this element appear in front of its parent's sibling?

当我从.wrapperRed中删除z-index时,为什么红色div在绿色div前面?感觉z-index是沿链向上继承的。如果我将绿色div的z-index更改为6,即使在删除第一句中描述的行后,它仍保持在红色div的前面。.wrapperRed{height:200px;width:200px;position:absolute;z-index:1;/*Whyisthereddivinfrontofthegreenone,ifthisz-indexisdeleted?*/}.red{position:absolute;height:100%;width:100%;background

html - 了解 z-index : How does this element appear in front of its parent's sibling?

当我从.wrapperRed中删除z-index时,为什么红色div在绿色div前面?感觉z-index是沿链向上继承的。如果我将绿色div的z-index更改为6,即使在删除第一句中描述的行后,它仍保持在红色div的前面。.wrapperRed{height:200px;width:200px;position:absolute;z-index:1;/*Whyisthereddivinfrontofthegreenone,ifthisz-indexisdeleted?*/}.red{position:absolute;height:100%;width:100%;background

Uncaught TypeError: Cannot read properties of undefined (reading ‘use‘)

报错:UncaughtTypeError:Cannotreadpropertiesofundefined(reading‘use’)原因:Vue-router版本问题,在vue-router3可在router/index.js中安装router插件,但4不支持解决:1、在router/index.js中,导出{createRouter,createWebHistory}两个函数使用createRouter来创建路由对象使用createWebHistory函数赋值给history属性,因为是vue-router4所以必须有history属性,否则会报错UncaughtError:Providet

html - 在 Chrome 中滚动时具有负 z-index 问题的 Canvas

描述Canvas负z-index存在问题。基本上,当固定位置有2个元素,一个是block元素,另一个是Canvas,并且Canvas的z-index为负时,无论怎样都会滚动第二个它的z-index是多少。此错误仅发生在Chrome:Mac和PC上。代码示例这是一个HTML示例(简化了问题):test1test1test1和CSShtml,body{height:150%;}ul{position:fixed;z-index:-1;top:0;left:0;width:100%;margin:0;padding:0;overflow:auto;li{float:left;width:33

html - 在 Chrome 中滚动时具有负 z-index 问题的 Canvas

描述Canvas负z-index存在问题。基本上,当固定位置有2个元素,一个是block元素,另一个是Canvas,并且Canvas的z-index为负时,无论怎样都会滚动第二个它的z-index是多少。此错误仅发生在Chrome:Mac和PC上。代码示例这是一个HTML示例(简化了问题):test1test1test1和CSShtml,body{height:150%;}ul{position:fixed;z-index:-1;top:0;left:0;width:100%;margin:0;padding:0;overflow:auto;li{float:left;width:33

javascript - jQuery 类型错误 : $ is undefined

我正在尝试使用iCheck插件,而且我是JQuery和javaScript的新手。我在浏览器中收到错误TypeError:$isundefined我环顾四周,发现了这个link,但我尝试按照它的建议添加(jQuery),但它没有更改错误消息。我在网页上看到的症状是网页在复选框内没有悬停功能或黑色,例如example北极星皮肤秀。有什么想法吗?请参阅下面的“c风格注释-//”以了解TypeError指向的确切行。这是我的代码的摘录:jQueryMicheleProject$(document).ready(function(){$("#infolist").accordion({auto

javascript - jQuery 类型错误 : $ is undefined

我正在尝试使用iCheck插件,而且我是JQuery和javaScript的新手。我在浏览器中收到错误TypeError:$isundefined我环顾四周,发现了这个link,但我尝试按照它的建议添加(jQuery),但它没有更改错误消息。我在网页上看到的症状是网页在复选框内没有悬停功能或黑色,例如example北极星皮肤秀。有什么想法吗?请参阅下面的“c风格注释-//”以了解TypeError指向的确切行。这是我的代码的摘录:jQueryMicheleProject$(document).ready(function(){$("#infolist").accordion({auto