Syntax 两个id的正确语法';s与Knockout.JS链接
好的,我可以使用一个id创建链接:Syntax 两个id的正确语法';s与Knockout.JS链接,syntax,knockout.js,hyperlink,Syntax,Knockout.js,Hyperlink,好的,我可以使用一个id创建链接: <td><a data-bind="text: productTypeId, attr: {href: '/*******WebAdmin2/ProductManager/ProductTypeDescriptionEditor.aspx?ProductTypeID=' + productTypeId}" target="_new"></a></td> 但是,在链接中引用两个id的正确synatx是什么 &
<td><a data-bind="text: productTypeId, attr: {href: '/*******WebAdmin2/ProductManager/ProductTypeDescriptionEditor.aspx?ProductTypeID=' + productTypeId}" target="_new"></a></td>
但是,在链接中引用两个id的正确synatx是什么
<td><a data-bind="text: wsNotes, attr: {href: '/****webadmin2/Common/PopupWindows/ManufacturerBlurbEditor.aspx?manufacturerid= + manufacturerBlurbID, &stylecode=styleCodeId'}" target="_new">Edit Blurb</a></td>
对不起!我对柯还是很陌生。谢谢你的帮助 您可以这样做:
<td><a data-bind="text: wsNotes, attr: { href: '/****webadmin2/Common/PopupWindows/ManufacturerBlurbEditor.aspx?manufacturerid=' + manufacturerBlurbID + '&stylecode=' + styleCodeId }" target="_new">Edit Blurb</a></td>
<td><a data-bind="text: wsNotes, attr: { href: manufacturerUrl }" target="_new">Edit Blurb</a></td>
在您看来,您是这样引用它的:
<td><a data-bind="text: wsNotes, attr: { href: '/****webadmin2/Common/PopupWindows/ManufacturerBlurbEditor.aspx?manufacturerid=' + manufacturerBlurbID + '&stylecode=' + styleCodeId }" target="_new">Edit Blurb</a></td>
<td><a data-bind="text: wsNotes, attr: { href: manufacturerUrl }" target="_new">Edit Blurb</a></td>