【文件属性】:
文件名称:autocompl:用于建议查询.google.com 查询的包装器。 获取 Google 搜索栏在您输入时会给您的自动完成建议
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-23 16:37:43
JavaScript
自动编译
此模块为您提供给定字符串的 Google 搜索自动完成建议。 如它是对建议调用的封装。
(模块名称中的笑话源自 。)
安装
npm install autocompl
用法
var autocompl = require('../autocompl');
autocompl('Batman and', function done(error, suggestions) {
console.log(suggestions);
});
输出:
[
'batman and robin',
'batman and robin costumes',
'batman and catwoman',
'batman and superman',
'batman and wonder woman',
'batman and robin quotes',
【文件预览】:
autocompl-master
----package.json(741B)
----autocompl.js(1KB)
----tests()
--------unittests.js(2KB)
--------livetests.js(2KB)
----.gitignore(23B)
----Makefile(56B)
----README.md(1KB)
----run-autocompl.js(371B)