在看element-ui中table组件的源码,看到如下代码:
render(h) {
const columnsHidden = this.columns.map((column, index) => this.isColumnHidden(index));
return (
<table
class="el-table__body"
cellspacing="0"
cellpadding="0"
border="0">
<colgroup>
{
this._l(this.columns, column =>
<col
name={ column.id }
width={ column.realWidth || column.width }
/>)
}
</colgroup>
<tbody>
其中的this._l是什么意思呀?
看
vue
源码 render#L116:能猜到,
_l
是用来渲染list
的方法简写