javascript 之拼接html字符串

//          var one = {"id":1,  "leasetime":2, "ney":0,"myhuifangshi":0}
//          var fe=0;
//          var nikeme=0;
//          var zt=0;
//          var buttons=0;
//          var s='<li class="todetail" data-id="'+ one.id+'"><p class="dd_time">'+ one.leasetime+'</p><div class="info-box"><img src="'+ fe+'" class="dd_face"></div><div class="dd_bot"><span class="dd_nikename">'+
//             nikeme+'</span><div class="money"><span class="dd_price">¥'+
//             one.ney+'</span></div></div><div class="dd_do"><span>约会:'+
//             one.myhuifangshi+'</span></div><p class="dd_zt">状态:'+
//             zt+'</p><div class="code_btn">'+
//             buttons+'</div></li>';
//          console.log(s);
//          var Guid = 3;
//          var Name = 4;
//          var b = '<td  class="tdSmallRedQuan" onclick="FlowEdit('+ Guid + ',' + Name + ')"  style="width:10%">' + Name + '</td>';
//          console.log(b);
//          var sstatic = 'static';
//          var c = '<img src="{{url_for('+sstatic+', filename='+picture_url_dic[time_s]+')}}">';
//          console.log(c);
//         "<img src=\""+img_html+"\">"

  

posted @ 2016-12-15 14:49  残宠魔法袋  阅读(8872)  评论(0编辑  收藏  举报