<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/(高墙之下,很多人可能看不到)