是否可以动态添加mql_filter来约束Freebase Suggest控件的结果?
$(function() {
$("#button").onclick(function() {
// add an mql_filter to #film, a Freebase Suggest control
});
$("#film").suggest({type:'/film/film'});
});
答案 0 :(得分:0)
您可以使用其他mql_filter重新启动建议:
$(function() {
$("#button").onclick(function() {
// add an mql_filter to #film, a Freebase Suggest control
$("film").suggest({type:'/film/film',
mql_filter: ...});
});
$("#film").suggest({type:'/film/film'});
});