iweb-java Web 后台管理系统模板发布

A backend web management system template with Java 8, Spring4, Hibernate5 and more… It’s just a seed yet, you have to raise it follow your own business demands. PROJECT RESOURCE Github: https://github.com/igordonxiao/iweb-java MAIN FRAMEWORKS 1 2 3 4 5 1. Spring4+SpringMVC+Hibernate5 2. Logback 3. Druid 4. Jetbrick-template 5. EhCache FRONT END 1 2 3 1. jQuery & Bootstrap v3.3.4 2. Fontawesome icons 3. Many resource code are from site [h+

Java中的Proxy

Java中的静态代理属于硬编码方式,在这里就不记录了。这里主要写下jdk动态代理和使用cglib实现动态代理的方法。 jdk动态代理 jdk实现

Angular directive for My97Date

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 angular.module('NG', []).directive('ngdatepicker', function () { return { restrict: 'A', require: '?ngModel', link: function ($scope, $element, $attrs, ngModel) { $element.on('focus',function(){ WdatePicker({ readOnly: true, onpicked: function(){ $scope.$digest(); } }); }); $scope.$watch(function(){ return $element[0].value }, function(newDate){ eval('$scope.'+$attrs.ngModel+' = newDate;'); }); } } }); 使用时需依赖jQu