【发布时间】:2012-12-01 11:01:15
【问题描述】:
这些在速度方面是否相等?
$(this).attr("date",date);
$(this).attr("date_start",date_start);
$(this).attr("heure_start",heure_start);
或
$(this).attr("date",date).attr("date_start",date_start).attr("heure_start",heure_start);
即使第二个更快,是否最好单独编写以使代码更具可读性?
【问题讨论】:
标签: jquery performance chaining