angular.js - angular 引入 jweixin的问题
过去多啦不再A梦
过去多啦不再A梦 2017-05-15 17:09:58
0
2
1244

我的项目使用了AngularJs,引入第三方库,如微信js-sdk。

<script type="text/javascript" src="js/lib/angular/angular.js"></script>
<script type="text/javascript" src="js/lib/angular/angular-route.js"></script>
<script type="text/javascript" src="js/lib/jweixin/jweixin-1.0.0.js"></script>

然后,报错了。
AngularJs的项目如何使用第三方库呢,如微信js-sdk?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
过去多啦不再A梦

Have you injected a wx into angular? ? ?

What you load through js reference will directly hang a wx global object on the window. Use it directly without injection.

过去多啦不再A梦

Introduce WeChat’s js directly and use the method inside. There is no need to inject it into the controller

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!