obsidian-notes/代码/自动补全.md

20 lines
375 B
Markdown
Raw Permalink Normal View History

2024-04-15 03:19:57 +00:00
---
title: 自动补全
updated: 2022-03-14 15:08:50Z
created: 2022-03-03 06:18:09Z
tags:
- 数据筛选
---
当输入数据具有重复性时可提供自动补全功能,可采用以下函数实现筛选
```js
searchSW = function(tab,arg){
var result = table.filter(tab,function(v,index){
return string.startWith(v,arg,true)
})
return result;
}
```
#数据筛选