show.insertBefore(show.firstChild.cloneNode(true)).className = "onlyPrint" //这一句是什么意思?
tr = show.insertBefore(show.firstChild.cloneNode(true)); //这一句是什么意思,这两句的作用是什么?
see:
http://www.google.com/search?hl=zh-TW&ie=UTF-8&oe=UTF-8&q=insertBefore+%22javascript%22&btnG=Google%E6%90%9C%E5%B0%8B&lr=lang_zh-CN%7Clang_zh-TWshow.firstChild.cloneNode(true) //考貝show的第一個下級Element,即第一個TR。
show.insertBefore //往物件show裡加入Element