V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2020-02-16 11:44:33 +08:00 · 2021 次点击
    这是一个创建于 1538 天前的主题,其中的信息可能已经有所发展或是发生改变。
    dropzone.js 上传文件插件如果添加其他元素到表单里来一起提交 post,需要阻止表单的默认行为 e.preventDefault(); e.stopPropagation();,如此一来,post 的返回结果只能在开发者工具的接口 response 看到,无法输出到当前页面也无法跳转到新页面。post 的后端处理逻辑是通过 tornado 实现的,请问有什么办法,可以将 post 的返回结果输出到当前页面吗??
    1 条回复    2020-02-16 15:33:47 +08:00
    676529483
        1
    676529483  
       2020-02-16 15:33:47 +08:00
    开发者工具都看见返回了,和 tornado 就没关系了,看下 dropzone 的回调吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   925 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.