Angular-bind-hash
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/huyinghuan/angular-bind-hash
- 软件文档: https://github.com/huyinghuan/angular-bind-hash
软件介绍
在页面加载时绑定哈希到元素的值上,用于 AngularJS 应用中的 URL 复制。
示例代码:
angular.module('app', ['honey.hashBind']) .config(['hashBindProvider', function(provider){ eventMap = { 'SELECT': false //Forbid select change event event. 'TEXT': [ //rewrite Enter key press events. working on element blur focus 'blur', function(e, cb){ cb and cb() } 'CHECKBOX': ... 'RADIO': ... ] } provider.setEventsMap(eventMap) }])