angular-ui-route遇到Error: fnPtr is not a function或Error: m is not a function

来源:互联网 发布:最新网络语 编辑:程序博客网 时间:2024/05/29 19:48
<form name="login" ng-submit="login()">........<span style="white-space:pre"></span><button type="submit"></form>

使用的angular-ui-route.js时是fnPtr is note a function错误、angular-ui-route.min.js时是m is note a function错误。楼主发生错误代码如上所示。

解决问题方法:把name="login"去掉。


解决问题参考的帖子http://angularjs4u.com/errors/angularjs-typeerror-object-function/(高墙之下,很多人可能看不到)

0 0
原创粉丝点击