我想在 celltemplate 中使用警报或日志功能直接查看我的对象。但是我不能。我的代码如下:
columnDefs: [
{ field: 'Status', cellTemplate: '<button ng-click="alert("llk")">show</button>' }, { field: 'Log', cellTemplate: '<button ng-click="$log.log(Enums.Role)">log</button>' }]
我的错误是:错误:[$parse:ueoe] 表达式意外结束:alert( http://errors.angularjs.org/1.3.0-beta.16/ $parse/ueoe?p0=alert( ....