search

Home  >  Q&A  >  body text

angular.js - An error occurs when loading ngCookies in the Android WeChat client of angurlarJS

<script src="http://code.angularjs.org/1.2.9/angular-cookies.min.js"></script>--加载cookies的依赖

var DemoApp = angular.module( 'DemoApp', ['ngCookies'] ).config( demoConfig );--在module中创建

Here comes the problem. When browsing this page in WeChat, the loading of dependencies stops. . . But the same link loads normally in various browsers on PC and mobile phones. Finally, remove all the code about cookies and it will be normal. It only appears on Android, and is normal on iOS.
What is going on? Is there any solution?

phpcn_u1582phpcn_u15822831 days ago702

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-15 16:58:56

    Your ngcookies version must be consistent with the angularjs version.
    I use version 1.4.3 without any problems

    reply
    0
  • Cancelreply