function dataGrid_click( event ) { var e = event || window.event, o = e.target || e.srcElement, handle = o.getAttribute( 'data-handle' ); if ( handle ) { try { eval ( handle + '(o)' ); } catch ( ex ) { alert( ex.message ); } } }
利用自定义属性实现 点击事件 委托