我需要将 url 参数连接到锚标记上。我将如何将其插入以下模板?
<tbody data-bind="foreach: Customers">
<tr class="rowEven">
<td data-bind="text: Name"></td>
<td data-bind="text: CustomerType"></td>
<td><a href="customers.aspx?customer=[CustomerAccountIDHere]">Manage</a><a href="#">Guest Admin</a></td>
</tr>
</tbody>
我试过这不会运气:
<tr class="rowEven">
<td data-bind="text: Name"></td>
<td data-bind="text: CustomerType"></td>
<td><a data-bind="attr: { href: 'customers.aspx?customer=' + CustomerAccount_BID}">Manage</a><a href="#">Guest Admin</a></td>
</tr>