gpt4 book ai didi

html - 错误 : Argument 'accomplishmentController' is not a function, 未定义

转载 作者:太空宇宙 更新时间:2023-11-04 14:28:38 25 4
gpt4 key购买 nike

http://jsfiddle.net/natecraft/jtMAq/3/

我不知道为什么会收到此错误。感谢您的帮助。

function accomplishmentController($scope) { 
$scope.accomplishments = [{ name: "nate", count: 1 }];
}

最佳答案

在 jsfiddle 左上角的“Frameworks & Extensions”框中将 onLoad 切换为“no-wrap- in head”。

仅供引用...原因是使用 onload 将 angular 放在 $(document).ready(function() {}) 的闭包内;将其关闭会导致各种问题。

关于html - 错误 : Argument 'accomplishmentController' is not a function, 未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19350474/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com