微信小程序提示db.RegExp is not a function(已解决)附加代码

主要原因是因为小程序的基础库版本太低,不支持正则表达式,所以应该改下基础库的版本。 附加实现搜索的代码: inputTyping: function (e) { var that = this db.collection('course').where({ //使用正则查询,实现对搜索的模糊查询 course_name: db.RegExp({ regexp: that.data.inputVal
相关文章
相关标签/搜索