sun019
V2EX  ›  问与答

用模板还是接口呢?

  •  
  •   sun019 · Mar 22, 2016 · 2838 views
    This topic created in 3740 days ago, the information mentioned may be changed or developed.

    遇到过这样一个项目:

    项目是 wap 页面放到微信平台 前端和后端前期开发完全分离了。 作为后端我想的是,直接输出接口 前端直接用 js 调用就行。 遇到的问题:

    1 ,前端想分离出头和尾出来。 (那只有后端 display 出模板了)

    2, 前端想有的页面用接口有的页面用模板。

    难道就不能 单纯的 前端后后端分离么? 就像开发客户端一样。

    1 replies    2016-03-22 11:55:44 +08:00
    barbery
        1
    barbery  
       Mar 22, 2016
    可以啊,看你怎么选
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 23:41 · PVG 07:41 · LAX 16:41 · JFK 19:41
    ♥ Do have faith in what you're doing.