问问题
4173 次
1 回答
6
尝试这样的事情:
var options = {
valueNames: ['name', 'type', 'tpi']
};
var userList = new List('users', options);
$('#tpi').change(function () {
var selection = this.value;
// filter items in the list
userList.filter(function (item) {
return (item.values().tpi == selection);
});
});
确保将此脚本放在需要过滤的 html 内容下方。
于 2014-01-15T15:20:06.307 回答