search

Home  >  Q&A  >  body text

node.js - 前端和后端完全分离问题

今天去面试了家公司,他们前后端是分离的。
前端这边采用node.js自己搭建了个服务调用后端的API。
主要使用的技术 sass gulp sea.js。

你们大家觉得这样的前端怎么样。

PHP中文网PHP中文网2783 days ago634

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 14:57:51

    Simple front-end and back-end separation can be achieved by adding a proxy or uniformly using the jsonp interface to achieve synchronous front-end and front-end separation development. Disadvantages: The template function cannot be used. The interface can only use ajax form, which is not friendly to search engines.

    Modular front-end and back-end separation, the front-end web part runs completely independently, including front-end code and back-end code; the back-end service runs independently, providing data and computing services.

    reply
    0
  • Cancelreply