factory 是一个函数用于返回值。在service 和controller 需要时创建。 通常我们使用factory 函数来计算或返回值。 // 定义一个模块var mainApp = angular.
確定! 回上一頁