我只是浏览了angular-openlayers-directive的代码HERE,现在我看到了很多类似下面的检查:
if (isDefined(attrs.width)) {
现在isDefined
显然是一个函数,并且attrs.width
正在传递参数,但是此函数在哪里isDefined
定义,最重要的是我如何找到它?
该功能isDefined
作为olHelpers
服务的一部分注入到指令中。
你可以在找到它 angularjs-openlayers-directive > src > services > olHelpers.js
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句