search

Home  >  Q&A  >  body text

javascript - How to achieve this beautiful picture show effect on the front end

As shown in the figure, how to implement a given template (multiple templates), click to select a picture or fill in text at the specified position of the template? I can't find a solution, please give me some ideas

黄舟黄舟2747 days ago716

reply all(2)I'll reply

  • 某草草

    某草草2017-05-16 13:26:54

    You can consider using js template engines such as: baiduTemplate (Baidu) artTemplate (Tencent) juicer (Taobao) doT tmpl handlebars easyTemplate underscoretemplate mustache kissytemplate

    The data is unified and the variable names are unified..
    It’s just a different HTML template. It’s fine..
    You can write multiple HTML templates...

    This is also the UI layer. Just separate it from the data layer.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:26:54

    It means I still don’t understand what you want to ask! Which effect can’t be written? Still don’t know how to switch templates? Or how to automatically fill in the data after taking the photo? still? ? ?

    reply
    0
  • Cancelreply