← 返回首页
APIJSON-Demo/APIJSON-JavaScript/README.md at master · APIJSON/APIJSON-Demo · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
34 lines (19 loc) · 1.18 KB
 master
Top

File metadata and controls

  • Preview
  • Code
  • Blame
34 lines (19 loc) · 1.18 KB

APIJSON上手部署 - JavaScript

1.下载后解压APIJSON-Demo工程

打开APIJSON-Demo的GitHub主页 > Clone or download > Download ZIP > 解压到一个路径并记住这个路径。


2.运行JavaScript工程

可选IDE或编辑器: WebStorm, PhpStorm, VSCode, Sublime, Atom ...
推荐使用 WebStorm。

APIJSON-JS工程

直接用浏览器打开html文件即可。或者使用IDE或编辑器。

APIJSON-JS-Vue工程

需要搭建Vue2.0环境及配置node_modules依赖才能运行调试,我主要参考了这篇博文

http://www.jianshu.com/p/5ba253651c3b


3.测试接口

看 浏览器界面 或 浏览器控制台。
如果默认url不可用,修改为一个可用的,比如正在运行APIJSON后端工程的电脑的IPV4地址,然后重新运行。

也可以直接使用 APIAuto-机器学习 HTTP 接口工具 或 Postman 等其它 HTTP 接口工具,格式为 HTTP POST JSON,具体示例参考通用文档
https://github.com/Tencent/APIJSON/blob/master/Document.md

Footer

© 2026 GitHub, Inc.