工作流程
事件流程
逻辑问题修正
服务器组装或者带参数的静态化页面中存在数据绑定(类似提交数据时需要id)
详见步骤三
服务器组装或者带参数的静态化页面中存在提交数据需要某些参数时:
1.在页面的编辑里构造数据
2.构造数据如下:红色字体为自定义部分
tmp_data.showing%20%3D%7B%7D%3B
tmp_data.showing._wwd_%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Exxid%3C/span%3E%20%3D%7B%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Eid%3A%20inputs.id%3C/span%3E%7D%3B
tmp_data.showing.success%20%3D%20true%3B
_.extend%28finish_data%2C%20tmp_data.showing%29%3B
//_wwd_%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Exxid%3C/span%3E%26%23xFF1A%3B%26%23x5C31%3B%26%23x662F%3B%26%23x8FD9%3B%26%23x4E2A%3B%26%23x5BF9%3B%26%23x8C61%3B%26%23x7684%3B%26%23x540D%3B%26%23x79F0%3B%26%23xFF0C%3B%26%23x4F46%3B%26%23x662F%3B%26%23x4EE5%3B_wwd_%26%23x5F00%3B%26%23x547D%3B%26%23x540D%3B
//%7B%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Eid%3A%20inputs.id%3C/span%3E%7D%26%23xFF1A%3B%26%23x8D4B%3B%26%23x503C%3B%26%23xFF0C%3B%26%23x5982%3B%26%23x679C%3B%26%23x6709%3B%26%23x591A%3B%26%23x4E2A%3Bid%26%23x9700%3B%26%23x8981%3B%26%23x8FD4%3B%26%23x56DE%3B%20%26%23x5219%3B%26%23x7EE7%3B%26%23x7EED%3B%26%23x6DFB%3B%26%23x52A0%3B%7B%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Eid%3A%20inputs.id%2Cid2%3Ainputs.xxid%2Cid3%3Ainputs.xmid%3C/span%3E%7D
//不需要返回代码段,此处已经返回数据了
3.在页面的同步数据元素上对此对象进行定义
%26%23x4E0D%3B%26%23x9700%3B%26%23x8981%3B%26%23x70B9%3B%26%23x51FB%3B%26%23x9AD8%3B%26%23x7EA7%3B%26%23x7F16%3B%26%23x8F91%3B%26%23xFF0C%3B%26%23x8BF7%3B%26%23x76F4%3B%26%23x63A5%3B%26%23x624B%3B%26%23x52A8%3B%26%23x8F93%3B%26%23x5165%3B%26%23xFF1A%3B%7B%7B%3Dit._wwd_%0A%20%20%20%20%20%20%20%3Cspan%20data-mce-style%3D%22color%3A%20%23ff0000%3B%22%20style%3D%22color%3A%20%23ff0000%3B%22%3Exxid%3C/span%3E%7D%7D
4.这时构造数据中的 id (id2,id3) 已经在页面数据层变量中,就可以通过数据层变量传参提交给后端或者某处,也可以用数据绑定使其显示在页面(例:文本绑定)等等