看看:


app.controller('ctrl1', ['$scope', function ($scope) { $scope.Hi = function (name) { return "Hi " + name; }; }]);Source Code
然后在html就可以应用此函数:
最终运行效果:
2018-08-19 14:22:03
浏览 1926
看看:


app.controller('ctrl1', ['$scope', function ($scope) { $scope.Hi = function (name) { return "Hi " + name; }; }]);Source Code
然后在html就可以应用此函数:
最终运行效果:
随时随地看视频慕课网APP
相关课程