mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
fix the doc erors
This commit is contained in:
@@ -55,7 +55,7 @@ try {
|
||||
// 同步读取buffer
|
||||
const buffer = Searcher.loadContentFromFile(dbPath)
|
||||
// 创建searcher对象
|
||||
const searcher = Searcher.newWithVectorIndex(buffer)
|
||||
const searcher = Searcher.newWithBuffer(buffer)
|
||||
// 查询 await 或 promise均可
|
||||
const data = await searcher.search('218.4.167.70')
|
||||
// data: {region:'中国|0|江苏省|苏州市|电信', ioCount: 0, took: 0.063833}
|
||||
|
||||
Reference in New Issue
Block a user