kliuj / local-ajax-api Goto Github PK
View Code? Open in Web Editor NEWmock工具可视版
mock工具可视版
If there is a post method better
希望可以把api的url可以设置成多级的如‘api/aa/bb’
$.get('http://localhost:3000/getjson/testapi2',function(res){console.log(res)})
VM277:1 Uncaught TypeError: $.get is not a function
at :1:3
Cannot GET /getjson/http://localhost:3000/getjson/ppp,点击预览和编辑都报错
1.创建一个api,例如{"code":1,"msg":2}
2.在生成文件.json文件会发现这个文件里面的detail字段,变成这种格式\ "a":1
E:\local-ajax-api-master\jsonServer>node app
E:\local-ajax-api-master\jsonServer\app.js:32
console.log("Express server listening on port %d in %s mode", app.address().port
, app.settings.env);
^
TypeError: Cannot read property 'port' of null
at Object. (E:\local-ajax-api-master\jsonServer\app.js:32:76)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.