-1
- 我是新來的劍道ui。
- 我想結合字段playerId和playerName的值
- 我需要結合兩個模板值。
- 你可以告訴我怎麼做.. - 提供我的代碼如下。
- 我試圖通過執行這樣但不工作
「that.jumping.ImageType(模型);」 + 「#= playerName.substring(playerName.lastIndexOf( '/')+ 1)#」在使用劍道ui時將js中的網格值組合在一起
{
field: "playerId",
width: 25,
title: " ",
sortable: false,
template: function name(model) {
return that.jumping.ImageType(model);
},
editor: function(container, model) {
}
}, {
field: "playerName",
filterable: that.gridkendo.getAutoFilterName("eq", "playerName"),
headerAttributes: {
class: "multiCheckboxFilterEnabled"
},
title: "File Name",
width: 200,
editable: false,
template: "<a onclick=\"window.open('#= playerName#', 'popup', 'width=800,height=600,scrollbars=yes,resizable=no')\">#= playerName.substring(playerName.lastIndexOf('/')+1) #</a>"
}
感謝您的回覆......但#symbol –
渲染數據kendo使用'#=一些文本#'格式的用法是什麼?我剛剛使用過兩次打印這兩個值 –
嘿,它沒有工作 –