欢迎第 Free Counters个访客
摘要: restful 规范(10) 什么是接口? - URL - 约束 # 约束继承(实现)了他的类中必须含有IFoo中的方法 interface IFoo: def func(self): pass class Foo(IFoo): def func(self): print(11111) 1. 根据m 阅读全文
posted @ 2018-05-28 15:50 阿强Wwlt 阅读(111) 评论(0) 推荐(0) 编辑
摘要: class CORSMiddleware(MiddlewareMixin): def process_response(self,request,response): # 添加响应头 # 允许你的域名来获取我的数据 # response['Access-Control-Allow-Origin'] 阅读全文
posted @ 2018-05-28 15:47 阿强Wwlt 阅读(287) 评论(0) 推荐(0) 编辑