标签:API


Fetch进阶指南

2018-08-13 JavaScript

Fetch 是 web 异步通信的未来。从chrome42,Firefox39,Opera29,EdgeHTML14(并非Edge版本)起,fetch就已经被支持了。其中chrome42~45版本,fetch对中文支持有问题,建议从chrome46起使用fetch。

Creating a RESTful API with PHP

2016-08-05 后端开发, PHP

What is REST? REST, or in the full form, Representational State Transfer has become the standard design architecture for developing web APIs. At its heart REST is a stateless client-server relationship; this means that unlike many other approaches there is no client context being stored server side (no Sessions). To counteract that, each request contains all the information necessary for the server to authenticate the user, and any session state data that must be sent as well.