方法 View.setQuery
对于涉及搜索的观看,请使用这些字词预先填充搜索查询。
签名
setQuery(query: string): View;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
query |
string |
否 |
|
返回
View
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["The `setQuery` method allows you to prepopulate the search query within a view."],["This method is primarily used for views that involve search functionalities."],["It accepts a single parameter, `query`, which is a string representing the search terms to be pre-filled."],["Using `setQuery` is not optional and will modify the view directly."],["Upon execution, this method returns an instance of the `View` object."]]],["The core function `setQuery` allows for prepopulating a search query within a view. It accepts a single, mandatory string parameter named `query`. This function is not optional, final, protected, or static. Executing `setQuery` with a string will modify the view by pre-filling the search field with the provided terms, returning the modified View object.\n"]]