推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
devoted2
V2EX  ›  Python

tornado post 请求返回结果如何输出到当前页面?

  •  
  •   devoted2 · Feb 16, 2020 · 2821 views
    This topic created in 2415 days ago, the information mentioned may be changed or developed.
    dropzone.js 上传文件插件如果添加其他元素到表单里来一起提交 post,需要阻止表单的默认行为 e.preventDefault(); e.stopPropagation();,如此一来,post 的返回结果只能在开发者工具的接口 response 看到,无法输出到当前页面也无法跳转到新页面。post 的后端处理逻辑是通过 tornado 实现的,请问有什么办法,可以将 post 的返回结果输出到当前页面吗??
    1 replies  •  2020-02-16 15:33:47 +08:00
    676529483
        1
    676529483  
       Feb 16, 2020
    开发者工具都看见返回了,和 tornado 就没关系了,看下 dropzone 的回调吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1051 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:29 · PVG 07:29 · LAX 16:29 · JFK 19:29
    ♥ Do have faith in what you're doing.