简体   繁体   English

有没有可能我在表名 users 上搜索,然后在 mvc 中的用户表名角色列上进行搜索

[英]Is there any possibility that i search on the table name users and then specifically on the column of user table name role in mvc

var users = new Bloodhound({
    datumTokenizer: Bloodhound.tokenizers.obj.whitespace('userName'),
    queryTokenizer: Bloodhound.tokenizers.whitespace,
remote: {
    url: '/Api/Users/?Role=1&query=%QUERY',
    wildcard: '%QUERY'
}

});

$('#supervisor').typeahead({    
    minLength: 1,
    highlight: true
},`

Here is code这是代码

simply by adding a query parameters in the query只需在查询中添加查询参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM