推荐学习书目
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
elsagong
V2EX  ›  Python

vuedraggable 在前后端分离的项目里如何拖动保存数据?( Python 后端)

  •  
  •   elsagong · Nov 30, 2018 via iPhone · 2382 views
    This topic created in 2799 days ago, the information mentioned may be changed or developed.
    vuedraggable 拖动排序及移动对象的代码全部写在 html 文件中的服务端渲染,请问各位前端大神,如何实现拖动保存 /更新数据?后端用的 Python/Django,是服务端渲染,没有使用 json 这种前后端分离的模式进行数据交互哦,非常感谢!
    3 replies    2018-12-04 09:34:06 +08:00
    sunzongzheng
        1
    sunzongzheng  
       Nov 30, 2018 via Android
    看描述你的问题等于 = 服务端渲染下前端如何提交数据给后端
    elsagong
        2
    elsagong  
    OP
       Dec 4, 2018 via iPhone
    @sunzongzheng 是的,你知道 vue.js 怎么实现吗
    sunzongzheng
        3
    sunzongzheng  
       Dec 4, 2018 via Android
    服务端渲染仅仅是服务端生成纯 html,最终的 js 代码依然是在客户机的浏览器执行,没法直接调用你跑在服务器的服务端代码。所以还是要通过接口来调
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   960 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:34 · PVG 03:34 · LAX 12:34 · JFK 15:34
    ♥ Do have faith in what you're doing.