
angularjs
꧁꫞弑༒魂꫞꧂
这个作者很懒,什么都没留下…
展开
-
angularJs 自定义指令实现星级评分功能
自定义指令directive,相关功能 代码如下: var app = angular.module("app", []); app.controller('ctrl',function($scope){ $scope.max = 5; $scope.ratingVal = 2; $scope.readonly = false; $scope.onHover = function原创 2016-05-24 13:01:48 · 4217 阅读 · 0 评论 -
更改后angularjs自定义星级评分
自定义控制器directive代码如下: app.directive('hgStarBox', function () { return { restrict:'ECAM', template: '', scope:{ startInfo:'=hgStarInfo' }, replace原创 2016-08-08 14:26:37 · 2181 阅读 · 2 评论