我正在尝试编写一个代码,将像"eu“这样的单词转换为”欧洲“,但我一直得到错误TypeError:如果用法正确,无法读取未定义的属性'toLowerCase‘
const Discord = require('discord.js')
const db = require('quick.db')
module.exports = {
name: 'code',
description: 'sends your among us code to the codes channel',
exam
我有这个阵列["Let me introduce", "Our Values"]
我使用以下代码:
var dataname: string[] = item[4].namecategory;
for (var i = 0; i < dataname.length; i++) {
console.log(dataname[i]); // output dataname[i] Let me introduce dataname[i] Our Values
}
this.CrewChannelCo
我正在运行ng测试并获得以下错误
在afterAll TypeError中引发了一个错误:无法读取未定义属性(读取“隐藏”) at SafeSubscriber._next () at SafeSubscriber.__tryOrUnsub () at SafeSubscriber.next () at Subscriber._next () at Subscriber.next () at Observable._subscribe () at Observable._trySubscribe () at Observable._trySubscribe () at ()。( 104.0.5
如果我编写以下代码:
f();
function f(v) {
var a = v;
}
浏览器在控制台中不提供警告/错误。但如果我写
f();
function f(v) {
var a = v['hellp'];
}
然后抛出: TypeError: v是未定义的。虽然在这两种情况下都没有定义变量"v“。有人能解释一下吗?
我有以下代码:
$scope.someVar = function(parameter){
if ($scope.parameter[this.$index].toCheck == 'false') {
$scope.anotherVar= '.'
} else {
$scope.anotherVar = ', to check with you if it has worked.'
}
};
然后当我调用HTML时:
<a href="#" ng-repeat="test in tests" ng-
每当我试图启动我的项目时,我都会发现以下错误:
$ ng serve
您的全局角CLI版本(1.7.3)大于本地版本(1.6.8)。使用本地角度CLI版本。
若要禁用此警告,请使用"ng set --全局warnings.versionMismatch=false“。
无法读取null的属性“config”
(D:\Projekte\Advanced-ban\webinterface\node_modules\@angular\cli\tasks\serve.js:51:63) at (D:\Projekte\Advanced-an\webinterface\node_modules