随笔分类 - angularjs
摘要:$compile将js生成的HTML中注入$scope,那样就可以在生成的HTML中使用angular var maphtml = $('#allmap1'); $compile(maphtml)($scope);
阅读全文
摘要:angularjs的自定义指令 -angular.module >controller >run >filter >directive *restrict的四种定义方式 *replace *template *templateUrl angularjs的自定义指令 -directive 》scope
阅读全文
摘要:一、ng-show/ng-hide 二、ng-if 三、ng-switch 四、ng-open
阅读全文
摘要:$scope.formlastDt = $filter('date')($scope.DrivingLicenceData.LastTime, 'yyyy年MM月dd日'); $scope.DrivingLicenceData = { Days: ds }; //重置$scope.DrivingLicenceData.Days
阅读全文

浙公网安备 33010602011771号