@cherrypy.expose

@cherrypy.tools.accept(media="application/json")   #加入这个装饰器

@cherrypy.tools.json_out()

@cherrypy.tools.json_in()

def upload_image_data(self):

          return cherrypy.request.json

04-14 19:41