我在我的网站上使用Stripe Payment处理器.
我已经为Stripe Checkout集成了以下表单.
https://stripe.com/docs/checkout#integration-simple
我想"Remember me everywhere"从表单中删除该选项.
我有外部js文件,它有更多功能.
我需要从角度控制器调用这些函数.
例如:external.js
...
...
function fun() {
...
...
}
...
...
Run Code Online (Sandbox Code Playgroud)
控制器:acccountController.js
myApp.controller('AddAccountController',function ($scope,AddAccountLoginServices,$location,localStorageService,$compile,toaster){
....
....
$scope.getLoginForm = function(siteId,name) {
...
...
fun(); // This function from external.js file
});
...
...
});
Run Code Online (Sandbox Code Playgroud)
我在acccountController.js之前导入了external.js. 但它并没有调用这个功能.而且我也没有得到任何控制台错误.
如何实现这一点...提前谢谢.