Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在内部串联多个值<;a>;用AngularJS标记_Angularjs - Fatal编程技术网

无法在内部串联多个值<;a>;用AngularJS标记

无法在内部串联多个值<;a>;用AngularJS标记,angularjs,Angularjs,我有一个表,它有一个名为的列。我需要在“姓名”列的括号内添加姓氏。名称是一个超链接。当我在下面的标记之间添加姓氏时,我看不到姓氏值。即使标记内的括号也不会显示在界面中。但是标记外的姓氏变量显示时没有任何错误。请帮帮我 <a nwf-elipsize-contents="{{row.entity[col.field]}}" data-abc-id="report-grid-{{col.field}}" title="{{row.entity[col.field]}}" n

我有一个表,它有一个名为的列。我需要在“姓名”列的括号内添加姓氏。名称是一个超链接。当我在下面的标记之间添加姓氏时,我看不到姓氏值。即使标记内的括号也不会显示在界面中。但是标记外的姓氏变量显示时没有任何错误。请帮帮我

<a nwf-elipsize-contents="{{row.entity[col.field]}}"
   data-abc-id="report-grid-{{col.field}}"
   title="{{row.entity[col.field]}}" 
   ng-href="{{ grid.appScope.getObjectLink(row.entity,col.field) }}">
  {{row.entity[col.field]}} ({{row.entity["surname"]}})
</a>
{{row.entity["surname"]}}

{{row.entity[“姓氏”]}
使用
元素:

<a ng-href="{{ grid.appScope.getObjectLink(row.entity,col.field) }}">
  <span nwf-elipsize-contents="{{row.entity[col.field]}}"
        data-abc-id="report-grid-{{col.field}}"
        title="{{row.entity[col.field]}}">     
    {{row.entity[col.field]}}
  </span>
  <span> ({{row.entity["surname"]}})</span>
</a>
{{row.entity["surname"]}}

{{row.entity[“姓氏”]}

nwf elipsize内容的作用是什么?我的猜测是,根据名字,它会接受你传递的内容,如果内容太冗长,会用以省略号结尾的较短文本替换。因为您没有传递姓氏,所以它只显示您告诉它要显示的内容。谢谢您的回复!即使姓氏没有通过,括号也应该显示对吗?我试着使用它,它起了作用。谢谢