我有一个像这样的服务:
angular.module('app').factory('ExampleService', function(){
this.f1 = function(world){
return 'Hello '+world;
}
return this;
})
我想从JavaScript控制台测试它并调用f1()服务的功能。
我怎样才能做到这一点?
相似问题