jjzjj

uncaught

全部标签

javascript - Uncaught ReferenceError : angular is not defined (Using testem)

在2个文件的第1行发现错误:-controllers.js-应用程序js下面连同html一起附上。当我启动本地服务器时出现该应用程序,但我无法登录或在输入我的详细信息后单击注册按钮进行注册。是404错误吗?我也尝试将这两行添加到index.html文件中(我认为是我没有定义的一些项目)但是没有用。index.html文件****Backcontrollers.js文件(第一行错误)angular.module('bucketList.controllers',[]).controller('SignInCtrl',['$scope','$rootScope','$firebaseAut

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 - 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 - 未捕获的类型错误 : Cannot read property 'focus' of undefined

此问题在我的页面加载时发生。使用以下脚本-jquery.simplemodal-1.4.3.js-jqueryv1.7.1下面是一个小代码快照,是发生此错误的simplemodal内的代码。focus:function(pos){vars=this,p=pos&&$.inArray(pos,['first','last'])!==-1?pos:'first';//focusondialogorthefirstvisible/enabledinputelementvarinput=$(':input:enabled:visible:'+p,s.d.wrap);setTimeout(fun