我有一个变量数据firstSelectedColumn.Name
,我想加上引号,下面的代码会引发运行时错误:
upRequested: function () {
selectedItems = this.requestedSelected;
firstSelectedColumn = selectedItems.shift();
//whats wrong here???????????
requestedSelected: ko.observableArray(['@firstSelectedColumn.Name']);
}
},
什么是正确的语法?