在angularjs中的传参的jquery的方式是极度相似的噢,而且还可以通过bind来改变指向
<!DOCTYPE html>
<html lang="en" ng-app="myapp">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="js/angular.min.js"></script>
</head>
<body>
</body>
<script>
function show(a1,a2){
console.log(a1);
console.log(a2);
alert(this);
}
angular.bind(document,show)(10,20);
</script>
</html>