Skip to content

Commit 492bf71

Browse files
committed
Update README.md
1 parent 6b67410 commit 492bf71

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# Leetcode-Api
2-
HttpRequest api for leetcode(zh-cn). / 关于力扣的网络请求接口。
2+
3+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/NeserCode/Leetcode-Api"><img title="GitHub download" src="https://img.shields.io/github/downloads/NeserCode/Leetcode-Api/total"/>
4+
5+
6+
7+
关于 力扣 的网络请求接口。
8+
HttpRequest api for leetcode(zh-cn).
9+
10+
## 免责声明
11+
12+
**本项目仅供学习交流参考,在任意情况下均不得用于任何商业用途。如若违反声明,后果自负,本人不承担任何责任。**
13+
**This project is for study and exchange only, and under no circumstances shall it be used for any commercial purposes. If you violate the statement, you are responsible for the consequences, and I do not assume any responsibility.**
14+
15+
------
16+
17+
## 项目总览
18+
19+
本项目提供的是 **力扣** 官方网站的 **WebApi** 集合,提出的 Api 均已试验成功。
20+
This project provides the **WebApi** collection of **Leetcode**, and the proposed Api has been successfully tested.
21+
22+
本项目仅包含一个入口 Javascript 文件,将本文档中提出的 WebApi 全部封装到 $Leetcode 类中。
23+
This project contains only an entry Javascript file that wraps all of the Webapis proposed in this document into the $Leetcode class.
24+
25+
所以,想使用 Leetcode-Api,你只需:
26+
So, to use Leetcode-API, you just need to:
27+
28+
```javascript
29+
import $Leetcode from "Leetcode-Api"
30+
31+
const variable = new $Leetcode()
32+
```
33+
34+
然后通过上例中的 variable 使用 Leetcode-Api 中的函数方法。
35+
Then use the function in Leetcode-API through the variable in the above example.
36+
37+
##

0 commit comments

Comments
 (0)