素材巴巴 > 程序开发 >

angular中运用$cacheFactory服务时候报错

程序开发 2023-09-02 18:10:48

我在截多一个图,估计大家就明白了...


Error: [$parse:lexerr] Lexer Error: Unexpected next character  at columns 0-0 [丰] in expression [丰盛的范德萨].
http://errors.angularjs.org/1.4.9/$parse/lexerr?p0=Unexpected%20nextharacter%20&p1=s%200-0%20%5B%E4%B8%B0%5D&p2=%E4%B8%B0%E7%9B%9B%E7%9A%84%E8%8C%83%E5%BE%B7%E8%90%A8


解决方法:

  $scope.ask=function(t,msg){cache.remove(t);cache.put(t, msg);             
 }

没次改变值时候 都先清除一下.



标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。