jjzjj

uncaught-exception

全部标签

javascript - 主干错误 : Uncaught TypeError: Object function (){ parent. apply(this, arguments); } 没有方法 'on'

知道为什么我在调用collection.fetch时会收到此错误吗?在这段代码中抛出:这是触发错误的代码:$(document).ready->SearchResult=Backbone.Model.extendSearchResults=Backbone.Collection.extendurl:"/backbone/search"model:SearchResultparse:(response)->console.logresponsenewSearchResultid:response.idtitle:response.titlesearchResults=newSearchR

javascript - Mocha 测试 : Uncaught TypeError: Cannot read property 'status' of null

学习TDD和我对“HelloWorld”服务器响应的第一个简单测试在Mocha中失败了。我正在使用Mocha.js、Superagent和Expect.js。当我curl-ilocalhost:8080时,我得到了正确的响应和状态代码。HTTP/1.1200OKContent-Type:text/plainDate:Mon,27Apr201517:55:36GMTConnection:keep-aliveTransfer-Encoding:chunkedHelloWorld测试代码:varrequest=require('superagent');varexpect=require('

javascript - 在 Sencha Touch 2 上尝试一个简单的列表示例,我得到 "Uncaught TypeError"

我正在试用Sencha2,我可以使用教程中的示例获取一个嵌套列表以正确显示,但是一旦我尝试一个简单的列表变体,我就会收到以下错误:UncaughtTypeError:Expectingafunctionininstanceof检查,但得到了#Object我使用的代码与示例中的代码完全相同,只是进行了更改以使其适合其自己的文件中的代码:Ext.define('layouts.view.TheList',{extend:'Ext.List',xtype:'thelist',config:{title:'TheList',store:{fields:['name'],data:[{name:

javascript - Bootstrap 下拉 Jquery Uncaught Error : Syntax error, unrecognized expression

我正在尝试在我的Bootstrap下拉菜单中添加一个外部http://链接,但它总是会导致UncaughtError:Syntaxerror,unrecognizedexpression:http://example.com/这是我在jQueryv1.11.3和bootstrapv3.3.5中使用的代码Webinar HomeFeaturesTestimonialsPricesHelp FAQ AboutUs ContactUs ChatwithUs我尝试添加data-target="#"但没有成功。 最佳答

javascript - 在 Web 上实现 Stripe : Uncaught ReferenceError: StripeCheckout is not defined

我正在尝试在我的网络应用程序中实现Stripe支付。但是,在使用示例代码时出现以下javascript错误:UncaughtReferenceError:StripeCheckoutisnotdefined代码是这样的:Stripe.setPublishableKey('pk_test_HnjFihOWwYTWnnsTLnZTmbgv');varhandler=StripeCheckout.configure({key:'pk_test_HnjFihOWwYTWnnsTLnZTmbgv',image:'/img/documentation/checkout/marketplace.pn

javascript - WebKit 未捕获错误 : INVALID_STATE_ERR: DOM Exception 11

我有这段代码,在Firefox中运行良好,但在Chrome中我遇到了这个错误:"UncaughtError:INVALID_STATE_ERR:DOMException11"atsprites.js:36在那一行是这段代码:context.drawImage(Context是一个全局变量,其中包含Canvas的二维上下文。这是完整的代码:index.htmlSprite.jsfunctionSpritePrototype(frames,width,height,type){this.frames=frames;this.type=type;if(this.frames>0){this.

javascript - karma.conf.js Uncaught ReferenceError : google no defined

当我尝试运行karma测试运行器时,我从我的一个文件中收到如下错误,说我的库google未定义???Chrome36.0.1985(MacOSX10.9.4)ERRORUncaughtReferenceError:googleisnotdefinedat/Users/giowong/rails_project/doctible_pre_treatment/app/assets/javascripts/angular-google-maps.min.js:7我的karma.conf.js文件//Karmaconfigurationmodule.exports=function(confi

javascript - "Uncaught SyntaxError: Unexpected token {"导入时

我正在尝试从另一个javascript文件导入一个函数,但是main.js中的导入语句发生错误。main.js:import{Event}from'event.js';letasdf=newEvent("hi","hi","hi");console.log(asdf.title);console.log(asdf.mainText);console.log(asdf.buttonSet);事件.js:exportfunctionEvent(title,mainText,buttonSet){this.title=title;this.mainText=mainText;this.but

javascript - jQuery.浏览器 : Javascript Uncaught TypeError

我遇到错误,无法加载我的页面。UncaughtTypeError:Cannotreadproperty'msie'ofundefined控制台报错引用这段代码:if(jQuery.browser.msie)extra_px+=3;//FixLinkClickingonIE7andbelowversionsif(jQuery.browser.msie&&Number($.browser.version)奇怪的是它突然发生了,我什么都没改变。作为引用,我使用的是Wordpress。 最佳答案 jQuery.browserwasdepre

javascript - PWA beforeinstallprompt Uncaught (in promise) DOMException

当用户安装pwa时,下面的函数可以正常工作。但是,如果他们拒绝,下次他们访问该站点时,deferredPrompt.prompt();会抛出Uncaught(inpromise)DOMException异常,即使deferredPrompt.prompt();不是未定义的。关于用户之前给出的答案,我需要检查什么吗?window.addEventListener('beforeinstallprompt',(e)=>{//PreventChrome67andearlierfromautomaticallyshowingtheprompt//e.preventDefault();letde