我们希望使用JavaScript捕获这两个错误
ERROR TypeError: Cannot read property 'big' of undefined
at t.brokenCode (main.6e3ef82a1a9a4d77938a.js:1)
at main.6e3ef82a1a9a4d77938a.js:1
at Uo (main.6e3ef82a1a9a4d77938a.js:1)
at s (main.6e3ef82a1a9a4d77938a.js:1)
at HTMLButtonElement.<anonymous> (main.6e3ef8
在我的node_modules中,我添加了允许我获取dropdown.js的bootstrap依赖项。但当我在使用下拉菜单的页面上点击下拉菜单按钮时,它在开发模式下不起作用,并返回以下错误:
dropdown.js:186 Uncaught TypeError: u is not a constructor
at c.t.show (dropdown.js:186)
at c.t.toggle (dropdown.js:137)
at HTMLButtonElement.<anonymous> (dropdown.js:375)
at Functio
我试图删除一个角度的列表,但它给我一个错误-谁能帮我吗?
ERROR TypeError: _this.data.recipe.ingredientList.delete is not a function
at add-recipe.component.ts:110
at Array.forEach (<anonymous>)
at AddRecipeComponent.push../src/app/components/HomePage/dialog/add-recipe/add-recipe.component.ts.AddRecipeComp
我对角质很陌生。我正在使用一个服务,trelloService,它包含一个函数getTaskData。在ng-click上,调用控制器的函数addme(),然后使用trelloservice.getTaskData获取数据,以便在页面上显示数据。但是我却得到了这个错误。
错误:
TypeError: trelloService.getTaskData is not a function
at Object.addme (scripts1.js:104)
at fn (eval at compile (angular.js:13231), <anonymous>:4:
我需要帮助。我遵循了本教程。我成功地启动了图表插件变焦。现在我想添加“重置缩放”按钮--我看了这个教程:
但是当我在$.ajax({});之后加上app.js
$('#reset_zoom').click(function() {
mycanvas.resetZoom();
})
并按下按钮错误显示:
app.js:131 Uncaught TypeError: mycanvas.resetZoom is not a function
at HTMLButtonElement.<anonymous> (app.js:131)
at HTML
我使用Firebase来开发一个web应用程序。我收到了一条错误消息
Uncaught TypeError: firebase.firestore(...).collection(...).orderBy(...).limit(...).set is not a function
at HTMLButtonElement.<anonymous> (main.js:152)
因为这个密码。
firebase.firestore().collection('script').orderBy('timestamp','desc').
所以我现在在if语句var message和var body中声明回调函数中的两个变量,当我运行代码时,当if语句访问else语句时会出现错误,然后当我从声明中删除var关键字并在全局声明中声明它们时,它会抛出Uncaught TypeError: Cannot read property 'parentNode' of undefined at HTMLButtonElement.<anonymous>,没有错误。有什么问题吗?I javascript是函数范围语言,而不是块作用域。即使在函数顶部的if语句之外声明变量也没有帮助。
代码:
function
我正在尝试在ionic中实现社交共享。我遵循了这个教程
我得到的错误是
TypeError:无法读取未定义的属性“”socialsharing“”
at Object.share (ng-cordova.min.js:9)
at Scope.$scope.shareAnyWhere (shareController.js:10)
at $parseFunctionCall (ionic.bundle.js:21037)
at ionic.bundle.js:53344
at Scope.$get.Scope.$eval (ionic.bundle.js:23093)
at Scope.$get
我在尝试保存用户的输入以进行d3计算时遇到了一些问题。我看过一些线程,包括JavaScript - Getting HTML form values,但由于某些原因,建议的解决方案似乎在下面的情况下不起作用。 这是我的HTML: <div class='row'>
<div class="col-md-12">
<p class="lead">
What is your annual household income?
我正在尝试获取数据库中所有用户的文档ID。为此,我编写了以下代码:
exports.scheduledFunction = functions.pubsub
.schedule('every 2 minutes')
.onRun(async context => {
console.log('This will be run every 2 minutes!');
try {
const usersRef = await admin //Works Perfectly, I get the QuerySnapshot o
所以,我试着在我的网站上使用Net Ninja教程。这是我关注过的tutorial link。但我必须更改一些代码,因为他们的firebase版本是旧的。 我想要做的是删除行,但是出现了这个错误: Uncaught (in promise) TypeError: doc is not a function at HTMLButtonElement.<anonymous> 这是javascript代码: function renderList(doc){
let trow = document.createElement('tr');
控制台在单击页面上的submit按钮时指出以下错误:
process.js:19 Uncaught ReferenceError: data is not defined
at HTMLButtonElement.<anonymous> (process.js:19)
at HTMLButtonElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLButtonElement.y.handle (jquery-3.3.1.min.js:2)
这是我的jQuery AJAX代码,当您点击submit按钮时执行它。这是我第一次使用AJAX/jQu
我使用的是引导5手风琴/折叠功能,我的代码似乎与BS5文档一致,但与几个月前在StackOverflow上出现的问题类似:
以下是浏览器错误消息:
Uncaught TypeError: Illegal invocation
at Object.find (selector-engine.js:18)
at X._getParent (collapse.js:301)
at new X (collapse.js:93)
at Function.collapseInterface (collapse.js:347)
at collapse.js:397
at Array.forEach (&l
调研互动课堂的 ticSdk.getBoardInstance().addBackgroundPic 新增白板并添加背景图片接口报js错误,直接设置背景图片接口是好的
board_sdk.mini.js:1 Uncaught TypeError: this.board.createBoradId is not a function
at d.addBackgroundPic (board_sdk.mini.js:1)
at online.addBackgroundPic (appForT.js?1=1:487)
at HTMLButtonElement.<anon
我在asp.net MVC5项目中使用jquery.unobtrusive和jquery.validate库来验证客户端的用户注册。
在浏览器上,我得到这个错误:
Uncaught TypeError: $(...).parents(...).andSelf is not a function
at Object.parse (jquery.validate.unobtrusive.js:211)
at HTMLDocument.<anonymous> (jquery.validate.unobtrusive.js:392)
at mightThrow (j
我正在学习angular,我看到了一个我似乎无法解决的问题。我已经查看了类似错误消息的其他解决方案,它倾向于指示范围,但我不认为这是一个问题。
目前我正在尝试做的事情是在div中隐藏一些东西,直到某个东西为真。在本例中,我想让a按下一个按钮,然后显示一些文本框。然而,我现在遇到的问题是,当我按下按钮时,由于出现错误,将值设置为true的功能将不起作用。错误是
TypeError: v2.show is not a function
at fn (eval at compile (angular.min.js:233), <anonymous>:4:266)
at b (angula
使用角1.4,jQuery 1.11.3和最新的Kendo,我得到了以下错误。这对Telerik来说是个已知的错误吗?
我在页面上使用的唯一的Kendo控件是kendo多选择、kendo日期选择器。
TypeError: Cannot use 'in' operator to search for 'length' in
at r (http://localhost/Scripts/jquery-1.11.3.min.js:2:4254)
at Function.m.extend.map (http://localhost/Scripts/jq
来自以下代码:
BlogApp.query.blog.equalTo("objectId", url).find().then(function(blog) {
var model = blog[0];
model = model.toJSON();
if (model == null {
Materialize.toast('This object no long exists!', 4000, 'red');
} else {
Im得到以下错误,用于删除附加到浏览器URL的散列。我通过使用一个实时视图。这些错误出现在控制台调试器中。
Uncaught TypeError: q.indexOf is not a function
jQuery 5
trigger
trigger
each
each
trigger
<anonymous> http://127.0.0.1:5500/assets/js/hash.js:5
jQuery 8
j
fireWith
我得到这个错误,我不知道如何解决它。在节点js服务器中,我在承诺中使用了一些.then()函数,最后我放置了一个由于某种原因而无法识别的.catch()函数。我在教程中看到了很多地方,这就是如何处理错误。我不使用任何外部库。
错误:
TypeError: promise.then(...).then(...).then(...).then(...).catch is not a function
这是我的密码:
exports.joinAlbum = function(req, res){
var promise = Album.findOne().where({'shortId
在Q.promise的“然后”回调中,调用空变量的函数有一些问题。
第一个调用(不使用q)将显示错误,而第二个调用(wuth使用)则不会显示错误。
小例子:
var Q = require('q');
var nul = null;
var exp;
(function (exp) {
var A = (function () {
function A() {
};
A.prototype.foo = function () {
var d = Q.defer();
d.r
当浏览器中的按钮被单击时,我正在尝试能够在服务器上运行一个puppeteer节点任务。我不确定是否设置了正确的环境,因为我得到了"Uncaught (in promise) TypeError: Cannot read property 'call' of undefined".
当我从CMD运行$node src/js/pdfTest.js时,它按照预期输出文件,所以我不确定我错过了什么。我使用的是puppeteer/puppeteer-web.js、C# .NET、JavaScript,Node10.15.0安装在我本地的windows/WSL机器上
pdf
当试图从窗体中删除ngTouch类时,我会收到以下错误。此错误清楚地反映了我使用的是已经具有此功能的angularjs1.4。然而,我仍然会收到这个错误。
$scope.mvp.$setUntouched()
VM3202:1 Uncaught TypeError: $scope.mvp.$setUntouched is not a function
at n.eval (eval at evaluate (unknown source), <anonymous>:1:12)
at Object.InjectedScript._evaluateOn (<ano