摘要: /*调用:在要右键点击的元素上 添加contextMenu属性即可*/var app = angular.module('app', [])app.directive('contextMenu', ['$window', function($window) {return {restrict: 'A',//require:'^?ngModel',link: function($scope, element, attrs) {var opened = false;varmenuElement = angular.el 阅读全文
posted @ 2014-03-12 23:02 NodeCity 阅读(5762) 评论(1) 推荐(0)