V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
liukeai7777
V2EX  ›  Python

请教各位 v 友,用 tornado 做了一个服务,想把接口返回的数据(返回的都是 json dumps 的字典和列表)用前端简单展示,用什么框架可以快速搭建。

  •  
  •   liukeai7777 · Nov 24, 2018 · 3452 views
    This topic created in 2714 days ago, the information mentioned may be changed or developed.
    9 replies    2018-11-24 15:15:25 +08:00
    Outliver0
        1
    Outliver0  
       Nov 24, 2018
    渲染模板,填充到前端
    Outliver0
        2
    Outliver0  
       Nov 24, 2018
    tornado 返回 json 数据,直接 self.write(dict),会自动添加 Content-Type:application/json
    如果返回 json 方法转换后的数据,Content-Type:text/html
    Outliver0
        3
    Outliver0  
       Nov 24, 2018
    没注意看,如果是前后端分离的话,vue 渲染数据比较简单
    liukeai7777
        4
    liukeai7777  
    OP
       Nov 24, 2018
    @Outliver0 我也是准备用 vue ! thanks
    Nick2VIPUser
        5
    Nick2VIPUser  
       Nov 24, 2018
    简单展示直接 jquery+bootstrap tabel 就好了
    a852695
        6
    a852695  
       Nov 24, 2018
    既然是简单显示,没有必要上 vue,一个 bootstrap、模块渲染就够了
    playniuniu
        7
    playniuniu  
       Nov 24, 2018 via iPhone
    @a852695 感觉现在 vue 比 jq 还简单 jq 都不会写了
    linzhi
        8
    linzhi  
       Nov 24, 2018
    再弄个 echart 就可以装逼了
    jasperjia
        9
    jasperjia  
       Nov 24, 2018 via Android
    Vue,最适合学过三剑客的后端的前端框架
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5414 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 07:36 · PVG 15:36 · LAX 00:36 · JFK 03:36
    ♥ Do have faith in what you're doing.