草庐IT

CUDNN_STATUS_EXECUTION_FAILED

全部标签

javascript - 无法使用 polymer 元素 - "Failed to execute ' registerElement' on 'Document' "

我创建了一个元素,为简洁起见,我将在此处对其进行简化,我想执行一个端到端的流程,看看它是否有效。这是它的bower.json文件:{"name":"test-element","version":"0.0.1","authors":["myname"],"description":"Adescription","license":"MIT","ignore":["**/.*","node_modules","bower_components","test","tests"],"dependencies":{"polymer":"~0.9.0"}}我将它上传到我的测试仓库,并在WebSt

javascript - 未捕获( promise )DOMException : Subscription failed - no active Service Worker

我正在尝试订阅用户,但这是我第一次遇到的错误。第二次,它正在工作,因为用户已经处于事件状态这是我的代码:if('serviceWorker'innavigator){console.log('ServiceWorkerissupported');navigator.serviceWorker.register('sw.js').then(function(reg){console.log(':^)',reg);reg.pushManager.subscribe({userVisibleOnly:true}).then(function(sub){console.log('endpoin

javascript - 未捕获的 InvalidStateError : Failed to execute 'transaction' on 'IDBDatabase' : A version change transaction is running

我必须承认我是indexedDB的新手我写了一段indexedDB的简单代码,如下:functiongo(){varreq=window.indexedDB.open("Uploader",1),db;req.onerror=function(e){console.log("Error");};req.onsuccess=function(e){db=e.target.result;};req.onupgradeneeded=function(e){console.log(db);db=e.target.result;varos=db.createObjectStore("Files"

javascript - res.should.have.status 给我错误

我是mocha和should.js的新手。我正在尝试检查响应的状态,但它给了我TypeError:Object#hasnomethod'status'代码是这样的:describe('Localsignup',function(){it('shouldreturnerrortryingtosaveduplicateusername',function(done){varprofile={email:'abcd@abcd.com',password:'Testing1234',confirmPassword:'Testing1234',firstName:'Abc',lastName:'

javascript - [Vue 警告] : Invalid prop: type check failed for prop "X". 预期,得到字符串

给定这个Vue2组件:Vue.component('read-more',{props:{'text':String,'clamp':{type:String,default:'ReadMore'},'less':{type:String,default:'ReadLess'},'length':{type:Number,default:100}},template:`{{truncate(text)}}=length"@click="toggle()">{{clamp}}{{text}}=length">{{less}}`,methods:{truncate(string){if(s

javascript - 如何解决来自 YouTube 嵌入的 'Failed to execute ' postMessage' on 'DOMWindow' ' 错误

我尝试使用YouTubeJavaScript/iFrameAPI寻找视频的不同时间。我已经精简了一个演示:http://jsbin.com/yuliponuvarplayer;window.onYouTubeIframeAPIReady=function(){variframe=document.createElement("iframe");iframe.width=400;iframe.height=300;iframe.id="youtubeIframe";iframe.src="https://www.youtube.com/embed/yta1WRuiupk?autoplay

javascript - 仅限 Chrome 错误 : Failed to execute 'scroll' on 'Window' : No function was found that matched the signature provided

我只在Chrome中遇到这个错误(在Safari/Firefox中有效):无法在“Window”上执行“scroll”:找不到与提供的签名匹配的函数。代码在内联事件中:我不明白这是什么问题。PS:注意这段代码是我在DOM渲染后得到的输出。实际代码拆分成我在服务器端模板引擎中使用的不同组件/函数,正如下面评论中指出的那样,应避免直接混合此代码。 最佳答案 也许试试scrollTo。这是支持x和y坐标的跨浏览器。http://www.w3schools.com/jsref/met_win_scrollto.asp...

javascript - "Call stack"和 JavaScript 中的 "Execution context stack"一样吗?

我经常在很多文章中看到“调用堆栈”。像这样:https://hackernoon.com/understanding-js-the-event-loop-959beae3ac40#ec22但是在ECMAScript文档中找不到“调用堆栈”。“调用堆栈”是否与“Executioncontextstack”相同? 最佳答案 СallStack和ExecutionStack是同一事物的不同名称。它是一个LIFO堆栈,用于存储在代码执行期间创建的执行上下文。维基百科说:“这种堆栈也称为执行堆栈、程序堆栈、控制堆栈、运行-时间堆栈,或机器堆栈

javascript - Angular JS 错误 : $compile:tpload: Failed to load template:

所以我试图在我的指令中加载模板。该指令是可重用的。但是我无法加载模板。我有其他模板可以加载并正常工作。我得到的错误是:GET/ClassificationToolkitForGrails/classificationviewer.html404(NotFound)angular.js:8521Error:[$compile:tpload]Failedtoloadtemplate:classificationviewer.html包含指令的javascript文件:/****/varclassificationViewModule=angular.module('ald.classifi

javascript - 未捕获的类型错误 : Failed to execute 'observe' on 'MutationObserver' : parameter 1 is not of type 'Node'

所以我下面的代码在jsfiddle中独立运行。但出于某种奇怪的原因..在将它推送到实时服务器后,我一直收到此错误:/我无法弄清楚为什么......错误:mycodewitherror.js:23UncaughtTypeError:Failedtoexecute'observe'on'MutationObserver':parameter1isnotoftype'Node'.js:$(document).ready(function(){//Thebelowcollectsuserloginname,newlogindateandtime,andprevioususeURLvarelem