@thewen/wenjs
v1.1.1
Published
<div class="logo" align = "center"> <img src="./assets/readme_imgs/logo.png"> </div>
Downloads
51
Readme
使用 Usage
npm
import wenjs from '@thewen/wenjs' wenjs.helloWen() // open console
直接引用
<!-- 直接下载仓库中dist/wenjs.js或者dist/wenjs.min.js--> <script src="dist/wenjs.js"></script> <script> wenjs.helloWen() </script>
CDN
或者
API
helloWen
问宗和你打招呼
wenjs.helloWen()
// 打开控制台看输出
baidu
告诉你任何问题的答案
wenjs.baidu(keyword: string)
// 直接打开新窗口
whois
告诉你ta是谁
使用jsonp查询,词条编辑在这里
wenjs.whois(who: string): Promise<string>
// 返回ta的简介