stateman控制路由,jsrender配合jquery完成2017新年H5答题专题
答题页模板结构: {{include tmpl=\"#j_process\" /}} {{include tmpl=\"#j_quePic\" /}} {{include tmpl=\"#j_answer\" /}}
j_answer模块
j_process模块
http://www.processon.com
通过hash记录题目index和正确数量,并在end页呈现不同效果:http://study.163.com/topics/edu2017/#/question?id=3&rightNum=2
通过题目编号为关键,通过数据驱动模板。题目变化后,对应数据变化即可
j_quePic模块
开始答题