标签:
var BoxCtrl = function($scope, $element) { } var str = BoxCtrl.toString().replace(/\s/g, ‘‘).split(‘){‘)[0].split(‘(‘)[1] var arr = str.split(‘,‘) if (~arr.indexOf(‘$scope‘)) { console.log(‘$scope‘) } if (~arr.indexOf(‘$element‘)) { console.log(‘$element‘) }
标签:
原文地址:http://www.cnblogs.com/jzm17173/p/4205991.html