当前位置:网站首页>Cloud function realizes fuzzy search function
Cloud function realizes fuzzy search function
2022-06-22 04:21:00 【JSONP$】
Cloud function realizes fuzzy search function
sou(e){
console.log(e.detail);
const searchKey =e.detail
if(searchKey&&searchKey.length>0){
// Fuzzy search code
db.collection('zhusir_video').where({
name:db.RegExp({
regexp:searchKey,
options:'i'
})
}).get()
.then(res=>{
console.log(res);
console.log(res.data);
this.setData({
searchValue:res.data
})
}).catch(res=>{
console.log(res);
})
}else{
wx.showToast({
title: ' The search term cannot be empty ',
icon:'none'
})
}
},
边栏推荐
- [BP regression prediction] optimize BP regression prediction based on MATLAB GA (including comparison before optimization) [including Matlab source code 1901]
- How does twitter decentralize? Look at these ten socialfi projects
- IDEA蓝屏的解决方案
- [shell] method of adding 1 to 100
- Replacement has 2 rows, data has 0, to solve how R language dynamically generates dataframes
- read stream 特别注意
- Tencent一面
- Django 学习--- 模型与数据库操作(二)
- 插入排序
- 每日一问:ArrayList和LinkedList的区别
猜你喜欢

Fluent syntax configuration

Large website technology architecture | application server security defense

Internet of things UWB technology scheme, intelligent UWB precise positioning, centimeter level positioning accuracy

图的DFS

順序錶的基本操作

Larave database backup scheduled task
![SSM based blog system [with background management]](/img/6b/6a488f5d6926de07c8b1b365362ff6.png)
SSM based blog system [with background management]

图的BFS

Laravel implements soft deletion

Multithread interrupt usage
随机推荐
微信小程序 上传七牛云 laravel
Large website technology architecture | application server security defense
天阳科技-宁波银行面试题【杭州多测师】【杭州多测师_王sir】
Convenient and easy to master, vivo intelligent remote control function realizes the control of household appliances in the whole house
Introduction to AWS elastic Beanstalk
Digital economy Wang Ning teaches you how to correctly choose short-term investment
Laravel realizes file (picture) uploading
Pytorch之contiguous函数
TCL华星发布全球首款0.016Hz超低频OLED穿戴设备屏
Some journals of C51
CentOS uses composer install to report an error - phpunitphppunit 8
After the active RM machine is powered off, RM ha switching is normal. However, the cluster resources cannot be viewed on the yarnui, and the application is always in the accepted state.
哈夫曼树
axios get传参拼接数据库字段
Is the Guoyuan futures account reliable? How can a novice safely open an account?
邻接矩阵,邻接表,十字链表,邻接多重表
How to quickly locate bugs and write test cases?
低功耗雷达感应模组,智能锁雷达感应方案应用,智能雷达传感器技术
Huffman tree
SSM inpatient management system