head
请在以下 3 行代码中解释 var 发生了什么(以及使用),而不是偶然发现它(我的理解有限) 。
<script type="text/javascript">
var head = $("thead#tHead1").clone().removeAttr("class");
$(head).find("#hRow2").remove();
head = $(head).wrap("<thead>").parent().html();
编辑在第1 行设置然后将 head 分配给另一个值$(head)
之后,在第 2 行代码上
使用有什么意义?head =
查看我学到的答案。