//Collect overtime list statistics JS

From , 3 Years ago, written in JavaScript, viewed 89 times.
URL https://pastebin.vip/view/8d5e957f
  1. var call = 0;
  2. $(".table1 .C").each(function (i, v)
  3. {
  4.     if (i > 0)
  5.     {
  6.         var vtext = $(v).text().replace("天", "@").replace("时", "@").replace("分", "").replace("0@", "").replace("00", "0").replace("@", ".");
  7.         if(vtext=="1.0")
  8.             vtext=8.0;
  9.         $(v).text(vtext)
  10.         call += parseFloat(vtext);
  11.     }
  12. });
  13. alert("总计小时:"+call.toFixed(2)+" 总计天数"+parseFloat(call/8).toFixed(2)+"合计:"+parseFloat((call/8)*【日工资】).toFixed(2));

Reply to "//Collect overtime list statistics JS"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website