阅读背景:

使用Knockout JS重新排序列表中的项目

来源:互联网 

I have an observable array of items. One of the properties of an 'item' is 'position', which denotes the item's position in the list. I would like to be able to reorder items on the page by having a drop-down with positions next to each item. When a user selects a position for an item in the drop down, the position values for any items affected get recalculated.I have an observable array of items. One of the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: